It's all about the answers!

Ask a question

How do i access the workitem from a plan through the RTC API


Thara Visveswaran (1611) | asked Jan 12 '15, 6:40 p.m.
I have the IIterationPlanRecord. I need to traverse the workitems associated with that plan. How can i do that?


Comments
Ralph Schoon commented Jan 13 '15, 3:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The Plan API is internal as far as I am aware. I know however, that others have done this.

Accepted answer


permanent link
Thara Visveswaran (1611) | answered Jan 13 '15, 6:22 p.m.
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

Comments
sam detweiler commented Jan 13 '15, 6:39 p.m.

great info.. thanks for posting back!

One other answer



permanent link
sam detweiler (12.5k6195201) | answered Jan 13 '15, 8:33 a.m.
edited Jan 13 '15, 8:37 a.m.
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.

one might be able to discover the mechanism by reading the product source code, most provided in SDK, but I have not done this.


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


Register or to post 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.