How to set an Iteration as Current Iteration programatically
I'm trying to set an Iteration as current iteration but it did not work, here is a code simple.
IIteration newIteration = (IIteration) IIteration.ITEM_TYPE.createItem();
IDevelopmentLine workingDevLine = (IDevelopmentLine) line.getWorkingCopy() ;
workingDevLine.setCurrentIteration(newIteration);
service.save(new IProcessItem[]{iter, newIteration}, monitor);
Any idea?
IIteration newIteration = (IIteration) IIteration.ITEM_TYPE.createItem();
IDevelopmentLine workingDevLine = (IDevelopmentLine) line.getWorkingCopy() ;
workingDevLine.setCurrentIteration(newIteration);
service.save(new IProcessItem[]{iter, newIteration}, monitor);
Any idea?
One answer
Hi Rachid,
From your code it does not look like you are saving the development line after setting the current iteration. You will need to save the dev line as well as the new iteration.
From your code it does not look like you are saving the development line after setting the current iteration. You will need to save the dev line as well as the new iteration.
Comments
showing 5 of 6
show 1 more comments