Hi everyone.
Reading this discussion it's not clear if what is asked is how to make a direct query to the Milestone endpoint itself, or whether to make a request to the HierarchicalRequirement endpoint (user story) and fetch user stories that have certain criteria of milestones. Perhaps it is clear to everyone, but to make certain, I'll clarify:
- Milestones are objects stored in an endpoint named: "
Milestone" (not Milestones). If you wanted to query milestones without any regard to associations with other objects such as user stories, then you should query against this endpoint. You can apply filters such as Name, ObjectID, FormattedID etc...
See this example of how to query for a milestone with FormattedID of 'MI1' . Similarly, you can filter by name, objectid etc..:
https://rally1.rallydev.com/slm/webservice/v2.0/milestone?query=(FormattedID = "MI1")
-
Milestones (not Milestone) is a name of a field of a user story. The endpoint of the user story is named: "HierarchicalRequirement". If essentially you are trying to get user stories with different filtering on their associated milestones then you shall query this endpoint to result with user stories. To formulate the query based on that field, you'll need to form a convention of Milestones.field_name where 'field_name' is a name of a field that belongs to the Milestone object (mentioned previously). Such a filter could be: Milestones.Name if you wanted to filter by the name of the milestone, or Milestones.FormattedID if you wanted to filter by the formatted id of the milestones etc...
See this example of how to query for user stories that are associated with a milestone with FormattedID of 'MI1':
https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?query=(Milestones.FormattedID = "MI1")
I hope this helps.
Sagi
Original Message:
Sent: 06-18-2019 06:58 PM
From: Matt Seitz
Subject: Re: no milestones query string
I'll try to verify, but first guess: Milestones.FormattedID = MI4524
Original Message:
Sent: 06-18-2019 06:26 PM
From: Jeff Myers
Subject: Re: no milestones query string
what would be the syntax for query against a specific milestone
I have tried
(Milestones.ObjectID = "MI4524")
(Milestones = "MI4524")
(Milestones = MI4524)
(Milestones = "Q2 P&T Release Target 2019")
(Milestones = Q2 P&T Release Target 2019)
and all I ever see is "Based on your selections, no work items data was found.
The milestones exists at the level I am querying against and it is the only filter I am using and I know for a fact that there are items associated with this milestone.
------------------------------
Jeff Myers
Agile Transformation Coach
Unify Consulting
Seattle WA
Original Message:
Sent: 05-31-2018 08:40 AM
From: Scott Meeker
Subject: Re: no milestones query string
yep, that did it. Duh, seems obvious now. thanks for the help