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

how to get the sub iteration details in RTC API

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

0 votes


Accepted answer

Permanent link

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

0 votes

Comments

Thank You Ralph :) It worked

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,954

Question asked: Mar 09 '17, 4:07 a.m.

Question was seen: 1,703 times

Last updated: Mar 09 '17, 4:37 a.m.

Confirmation Cancel Confirm