It's all about the answers!

Ask a question

Create an iteration using java api


1
1
Sapan Desai (5625) | asked Aug 13 '12, 6:08 p.m.
 I want to create an iteration for a particular development line using plain java api.  Can somebody guide me in proper direction?

One answer



permanent link
Sapan Desai (5625) | answered Aug 14 '12, 4:56 p.m.
edited Aug 14 '12, 4:57 p.m.
 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);


Comments
Clement Liu commented May 16 '14, 3:00 p.m.

Thank you! 

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.