It's all about the answers!

Ask a question

Create an iteration using java api

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



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

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

    newIteration.setDevelopmentLine(workingDevLine); IProcessItem[] { workingDevLine, newIteration }, monitor);

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

Thank you! 

Your answer

Register or to post your answer.