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

How to get all iterations in a RTC plugin?

For some reasons, we have a lot(!) of iterations in the project area. Hence, the DropDown list becomes huge.
We want to assign the WI using two custom enumeration fields, and parse them inside a plugin in order to find the required iteration.
In order to check process feasibility, I need to know if I can get a collection of all iterations in my project area in a plugin.
Well, how do I do it?

0 votes



2 answers

Permanent link
from the project get the Timelines, and from the timelines get the list of iterations

<code>
         IDevelopmentLineHandle[] dlh = iprja.getDevelopmentLines();
         IDevelopmentLine dl = (IDevelopmentLine) auditableClient .fetchCurrentAuditable(dlh[0],
              ItemProfile.createFullProfile(IDevelopmentLine.ITEM_TYPE), null);
         
          // get current iteration for this timeline
          IIterationHandle cih = dl.getCurrentIteration();
         // get all iterations for this timeline. note this is top level iterations.
         // iteration.getChildren() will get the next layer down.
          IIterationHandle[] iterations = dl.getIterations();
</code>

2 votes


Permanent link
Hi Idan,

you should be able to get some inspiration from: https://rsjazz.wordpress.com/2012/10/05/handling-iterations-automation-for-the-planned-for-attribute/

You can get all timelines and then from the timeline iterate trough the iterations, sub iterations and so forth.

1 vote

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
× 12,019
× 70

Question asked: Jul 18 '13, 3:22 a.m.

Question was seen: 6,208 times

Last updated: Jul 18 '13, 9:29 a.m.

Confirmation Cancel Confirm