Welcome to the Jazz Community Forum
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.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 12 '24, 1:30 p.m.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.
Angelo Corna
Apr 15 '24, 2:39 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 15 '24, 2:40 a.m.I would try it out.