It's all about the answers!

Ask a question

how to get the sub iteration details in RTC API


vinitha dsouza (14719114) | asked Mar 09 '17, 4:07 a.m.

hello Team

I have a timeline structure like this :

Compnents devlepment( Timeline)
     MainItearation(iteration)
            SubIteartion(iteartion)

Using RTC API i am able to get the iteration name MainItearation(iteration) from Compnents devlepment( Timeline)

But i am unable to get the subiteartion name (SubIteartion(iteartion)) from Compnents devlepment( Timeline)

Below is my code :
if(developmentLine.getName().equals("Compnents devlepment"))
               {
      
        // get all iterations for this timeline.

        IIterationHandle[] iterations = developmentLine.getIterations();

        for (IIterationHandle iIterationHandle : iterations) {
            IIteration iteration = fAuditableClient.resolveAuditable(
                    iIterationHandle, ItemProfile.ITERATION_DEFAULT, monitor);
       
            String itearationName = iteration.getName();
        
        }
         
How to get all the sub iteartions using clien API ??

Thank You

Accepted answer


permanent link
Ralph Schoon (63.0k33645) | answered Mar 09 '17, 4:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 09 '17, 4:19 a.m.

Please see: https://rsjazz.wordpress.com/2012/10/05/handling-iterations-automation-for-the-planned-for-attribute/ in the download look at the com.ibm.js.team.api.tools.process.DevelopmentLineHelper.findIteration(IProjectAreaHandle, List<String>, Comparemode)

You have to iterate the iteration level e.g. get the first level of iterations from the development line, then get the next level for each iteration you got (get its children).

developmentLine.getIterations()
iteration.getChildren()

com.ibm.js.team.api.tools.process.DevelopmentLineHelper.findIteration(IProjectAreaHandle, List<String>, Comparemode)  should do the trick for you.



vinitha dsouza selected this answer as the correct answer

Comments
vinitha dsouza commented Mar 09 '17, 4:37 a.m.

Thank You Ralph :) It worked

Your answer


Register or to post your answer.