Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Java API - Order of iterations

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

0 votes



One answer

Permanent link

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)

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,089

Question asked: Aug 17 '16, 9:57 a.m.

Question was seen: 4,030 times

Last updated: Aug 18 '16, 4:03 a.m.

Confirmation Cancel Confirm