Rally - How to search for a Milestone using the WebServices API
book
Article ID: 10947
calendar_today
Updated On:
Products
Rally On-Premise
Issue/Introduction
Trying to create a milestone with the same name and date attributes as an already existing milestone will result in an error such as Validation error: Milestone.name and date: Milestone '<formatted ID>: <milestone name>' already exists with the same name and date in this workspace
Searching for the milestone doesn't always return results, so it seems like the milestone may not actually exist.
Environment
Release: Component: ACSAAS
Cause
Due to how the relationships of milestones and projects are defined, it is difficult to search for a milestone unless you are directly scoped to one of the projects where the milestone is already associated. Setting the option to search in parent or child projects has no effect on this behavior.
Resolution
*You will need to be a Subscription Administrator to view ALL Milestones using the WebService API for Agile Central*
Locate Milestone from the list on the left, under Object Model
In the Query String box, type the following:
ex. (FormattedID = "MI444") Input the Milestone number
Select the checkboxes for both options listed below to run the correct query
a. Fetch full objects b. Beautified JSON output
Click on the query box
Scroll down through the JSON REST Output until you get to the box for 'Projects:' you should see there the count of projects for which the milestone is present. Then click on the _ref: URL to get a listing of the projects in which the milestone is present.