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

Archive EWM Project Area with Java Plain API

I'm trying to archive an EWM 7.0.3 Project Area using the Java Plain API.
Here the related instructions
projectArea = (IProjectArea) processItemService.getMutableCopy(projectArea);
projectArea.setArchived(true);
processItemService.save(new IProcessItem[] { projectArea }, monitor);

Unfortunately I receive the following error
com.ibm.team.process.common.service.ProcessDataValidationException: Project area 'PRJ_ARK1' is archived, but its timeline 'Main Development' is not.
I'm able to retrieve the timeline but I don't know how archive it.
Please can you help me to solve this issue?

Thanks in advance. Bye.

0 votes

Comments

Bonus before weekend:

Find the IProjectArea or ProjectArea class item related to the timeline. If needed cast and use the archive method. Add the changed processItem to the IProcessItem array IProcessItem[]. Perform the save.

Hi Ralph,

thanks for your response.
I've also found this method which seems to archive project area and teamline
processItemService.archiveProcessItem(projectArea, monitor);
Is it equivalent of your suggestion?

Bye.

I would try it out.


Be the first one to answer this question!

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,943

Question asked: Apr 12 '24, 12:31 p.m.

Question was seen: 483 times

Last updated: Apr 15 '24, 2:40 a.m.

Confirmation Cancel Confirm