Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

            devLine = (IDevelopmentLine) devLine.getWorkingCopy();
            devLine.setCurrentIteration(current);
            processServerService().saveProcessItem(devLine);

 
You use the IProcessItemService to save the working copy of the development line after setting the current iteration.

1 vote

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 1,700

Question asked: Feb 20 '20, 9:24 a.m.

Question was seen: 856 times

Last updated: Feb 20 '20, 10:44 a.m.

Confirmation Cancel Confirm