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?
|
2 answers
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> |
Ralph Schoon (63.5k●3●36●46)
| answered Jul 18 '13, 3:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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. |
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.