Rally - SDK: Scoping project does not reduce the milestone resultset

book

Article ID: 130402

calendar_today

Updated On:

Products

CA Agile Central On Premise (Rally) CA Agile Central SaaS (Rally)

Issue/Introduction

When using the project scoping in a get call, all milestones are still retrieved.  For example, the following pyral based call will still fetch all milestones in the workspace:
responses = rally.get("Milestone", fetch=fields, project="Sample Project", order="FormattedID,TargetDate")

Cause

This is because milestones are not always assigned to a project and scoping to a specific project will cause those milestones to be dropped from the resultset.

Environment

Release:
Component: ACSAAS

Resolution

In order to scope to a specific project, it is instead necessary to use a query argument as follows:
responses = rally.get("Milestone", fetch=fields, project="Sample Project", order="FormattedID,TargetDate", query="((Projects contains \"/project/198278166556\") OR (Projects.ObjectID = null))")