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
![]()
Ralph Schoon (61.8k●3●36●43)
| answered Feb 20 '20, 9:57 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
Andrew Ciaz selected this answer as the correct answer
Comments 1
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
devLine = (IDevelopmentLine) devLine.getWorkingCopy();
You use the IProcessItemService to save the working copy of the development line after setting the current iteration.
|