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

Create an iteration using java api

 I want to create an iteration for a particular development line using plain java api.  Can somebody guide me in proper direction?

1

1 vote



One answer

Permanent link
 Found it... If somebody else is still looking for it

IProcessItemService service= (IProcessItemService) repo.getClientLibrary(IProcessItemService.class);

    

        IIteration newIteration = (IIteration) IIteration.ITEM_TYPE.createItem();

    newIteration.setName("Ssdfecowsdfnd Iteration");

    newIteration.setId("193");

    

    IDevelopmentLine workingDevLine = (IDevelopmentLine) devLine.getWorkingCopy();

    workingDevLine.addIteration((IIterationHandle) newIteration.getItemHandle());

    newIteration.setDevelopmentLine(workingDevLine);

    service.save(new IProcessItem[] { workingDevLine, newIteration }, monitor);

1 vote

Comments

Thank you! 

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

Question asked: Aug 13 '12, 6:08 p.m.

Question was seen: 5,725 times

Last updated: May 16 '14, 3:00 p.m.

Confirmation Cancel Confirm