How projectArea.setProjectDevelopmentLine(developmentLine) work? How to set current iteration for project Area?
Hi al,
I write below code but it won't work:
IDevelopmentLine developmentLine = (IDevelopmentLine) repoService.fetchItem(projectDevelopmentLineHandle, null);
developmentLine.setCurrentIteration(iterationToBeSet);
projectArea.setProjectDevelopmentLine(developmentLine);
I implemented this code but the current iteration is not updated in the project area. Could you please help me to solve this issue?
Accepted answer
You can use Java Search for method setCurrentIteration() and find examples in the SDK e.g. in:
com.ibm.team.interop.service.tests.AbstractInteropServiceTest.setCurrentIteration(IProjectArea, String)
You need to get an iteration from the development line that you can actually set as current iteration. You don't have to set the development line, it should already be set.
Not sure if there is a special save operation needed.