Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes

Comments

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


Accepted answer

Permanent link
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

0 votes

Comments

great info.. thanks for posting back!


One other answer

Permanent link
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/

0 votes

Comments

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.

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.

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 457
× 411
× 50

Question asked: Jan 12 '15, 6:40 p.m.

Question was seen: 5,653 times

Last updated: Jan 13 '15, 6:39 p.m.

Confirmation Cancel Confirm