It's all about the answers!

Ask a question

fetch sub iterations of a project area using java api


Sudipto Sarkar (631343) | asked Dec 17 '15, 6:37 a.m.
Hello,

 I have a list of iterations in my project area. Under those parent iterations, I have many child iterations. But when I fetch all iterations using java api, i get a list only for parent iterations. How can I get the child iterations?

Regards,
Sudipto

Accepted answer


permanent link
sam detweiler (12.5k6195201) | answered Dec 17 '15, 7:54 a.m.
for each timeline, call getIterations() to get the list of child iterations.
and you can also call getIterations() on an iteration..

getChildren()  will get you the count if there are any.

I made a little recursive routine to process the iteration tree.
Sudipto Sarkar selected this answer as the correct answer

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.