Exception while saving Project developmentLine
![]()
Hello,
I'm creating a project area and then associating a development line to it. I create the developmentLine as follow: IProcessItemService service = (IProcessItemService) repo.getClientLibrary(IProcessItemService.class); Then I set the timeLine to the project area as follow:
When I save the project and the developmentLine with: getProcessService().saveProcessItems(new IProcessItem[] { projectArea, timeLine }); I'm getting this exception: Exception in thread "main" com.ibm.team.repository.common.internal.ImmutablePropertyException What am I doing wrong? Thnaks |
2 answers
![]()
Jared Burns (4.5k●2●9)
| answered Aug 24 '09, 8:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Mon, 24 Aug 2009 10:38:03 +0000, eclipsetalk wrote:
I'm getting this exception:Exception in thread "main" In order to modify an item in Jazz, you need to get a working copy IItem#getWorkingCopy() is typed to return IItem, but you can safely cast the result to whatever item type you had to begin with. For example: projectArea = (IProjectArea) projectArea.getWorkingCopy(); -- Jared Burns Jazz Process Team |
![]()
Thanks Jared, it works like a charm now.
|
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.