It's all about the answers!

Ask a question

how to get the sub iteration details in RTC API

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

hello Team

I have a timeline structure like this :

Compnents devlepment( Timeline)

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.1k33646) | answered Mar 09 '17, 4:15 a.m.
edited Mar 09 '17, 4:19 a.m.

Please see: in the download look at the, 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).

iteration.getChildren(), List<String>, Comparemode)  should do the trick for you.

vinitha dsouza selected this answer as the correct answer

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

Thank You Ralph :) It worked

Your answer

Register or 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.