How do i access the workitem from a plan through the RTC API
I have the IIterationPlanRecord. I need to traverse the workitems associated with that plan. How can i do that?
|
Accepted answer
I finally found the solution.
Used the IIterationPlanService.fetchPlannedWorkItems - gave me the workitems associated with the plan Identified the ranking attribute of the work items and sorted through that. Ralph Schoon selected this answer as the correct answer
|
One other answer
From the Plan record, get the iteration handle, then query the workitems with the Planned For set to that iteration.
IIterationPlanRecord pa; pa.getIteration(); a Plan is a view over exiting data.. People (team) doing work (workitems) over time (iteration) Ralph has a blog entry on workitem Queries https://rsjazz.wordpress.com/2012/10/29/using-work-item-queris-for-automation/ Comments
Thara Visveswaran
commented Jan 13 '15, 12:25 p.m.
I need to traverse the plan because i want the order in the plan to be maintained. I cant use the query cos i want to export the order of the ranked list.
sam detweiler
commented Jan 13 '15, 12:49 p.m.
the info on workitem rank storage and access is not documented. at this time I am unaware of how to query in ranked order.
Thara Visveswaran
commented Jan 13 '15, 1:02 p.m.
I was able to get to the work items for the plan, but the order is not ranked. Can someone suggest how can i get the same order?
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
The Plan API is internal as far as I am aware. I know however, that others have done this.