Use the API to retrieve all Milestones for a Project
search cancel

Use the API to retrieve all Milestones for a Project

book

Article ID: 247836

calendar_today

Updated On:

Products

Rally SaaS

Issue/Introduction

Is it possible to retrieve all available milestones for a project via the REST API? Querying "(Project contains <PROJECT_OID>)" doesn't return milestones associated with all project under a workspace.

Resolution

The API query below will retrieve all the milestones for a given project.  It will be necessary to change the <PROJECT_OID> to the Project you are wanting the list of Milestones for.

https://rally1.rallydev.com/slm/webservice/v2.x/milestone?compact=true&fetch=Artifacts,Name,CreationDate,LastUpdateDate,FormattedID,TotalArtifactCount,Project,Projects,TotalProjectCount,TargetDate&query=((Projects contains "/project/<PROJECT_OID>") OR (Projects.ObjectID = null))&start=1&pagesize=200&order=FormattedID DESC