Java API - Order of iterations
One answer
I haven't done that myself, but
Have you tried using the following method?
void com.ibm.team.process.common.IIteration.insertChildAfter(IIterationHandle child, IIterationHandle anchor)
Inserts the iteration identified by the given handle into the list of child iterations right after the given anchor. In order to complete the bi-directional relationship, callers must also set this iteration as parent of the new child. If the given iteration is already a child of this iteration, this method does not have any effect. If the anchor is
null
the element is added at the beginning of the list.
- Parameters:
- child a handle for the new child
-
anchor the current child after which the new child should be added or
null
And then save both iterations at the same time with
IProcessItem com.ibm.team.process.client.IProcessItemService.save(IProcessItem processItem, IProgressMonitor monitor)