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.

Hi,

Let´s assume the following timeline/Iteration sequence:

TL1

--Iteration 2

--Iteration 1

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

TL1

--Iteration 1

--Iteration 2

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

Best regards

Alexander

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 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)

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.