The key here is to query on Workitem, then to qualify *every* single attribute thereafter, as either Workitem.Something (for generic things like name) or Story.Something (for story attributes) or Task.Something (for Task attributes). Note that this query is also going to return any Defects and Tests that you have defined in that Timebox.
-Maggie
-----Original Message-----
From: Sandra McLeod [mailto:SMc...@edfinancial.com]
Sent: Friday, March 07, 2008 11:03 AM
To: Maggie Bullington; version...@googlegroups.com
Subject: RE: Getting list of Stories And Tasks in a sprint
Hi Maggie!
Here are the queries I've been using:
To get the list of Stories (some of which don't have tasks assigned
yet):
instance/rest-1.v1/Data/Story?sel=Name,Estimate,Children[AssetState!='De
leted'].DetailEstimate.@Sum,Status.Name,Children[AssetState!='Deleted'].
ToDo.@Sum,Children[AssetState!='Deleted'].Actuals.Value.@Sum,Owners.Nick
name,Timebox.Name,Scope.Name,ID.Number&where=Timebox.AssetState='Active'
;Scope.Name=<myProject>
To get the list of Tasks (including ID of parent story for merging
purposes)
instance/rest-1.v1/Data/Task?sel=Name,DetailEstimate,ToDo,Actuals.Value.
@Sum,Owners.Nickname,Parent.ID.Number&where=AssetState!='Deleted';Timebo
x.AssetState='Active';Parent.Scope.Name=<myProject>
The result that I'm looking for is a list of stories (with rolled-up
estimates, actuals, todo, etc) and the list of tasks defined for each
story (with detailed estimate, actual, todo, etc. for each task).
Thanks for your help!
-Sandra