It's all about the answers!

Ask a question

Java API - Order of iterations

Alexander Pawlik (6128) | asked Aug 17 '16, 9:57 a.m.


Let´s assume the following timeline/Iteration sequence:


--Iteration 2

--Iteration 1

Is there any way to change this through Java API to the following sequence


--Iteration 1

--Iteration 2

I haven´t found any api call that can help me in order to do this.

Best regards


One answer

permanent link
Miguel Tomico (5001323) | answered Aug 18 '16, 3:43 a.m.
edited Aug 18 '16, 4:03 a.m.

I haven't done that myself, but

Have you tried using the following method?

void 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.

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 processItem, IProgressMonitor monitor)

Your answer

Register or to post your answer.