how to get the sub iteration details in RTC API
![](http://jazz.net/_images/myphoto/12e972b7803e8594eb74ac131f5f520a.jpg)
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
![](http://jazz.net/_images/myphoto/12e972b7803e8594eb74ac131f5f520a.jpg)
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.