It's all about the answers!

Ask a question

Team area creation, is it possible programmatically?


Vikas Setty (2162) | asked Jul 11 '08, 10:17 a.m.
JAZZ DEVELOPER
I am developing a component which needs creation of team area and when I do that, am unable to add to the hierarchy.
I get an exception, ImmutablePropertyException. Are there any steps missed out here?

Here is the code snippet:

ITeamArea teamArea = (ITeamArea) ITeamArea.ITEM_TYPE.createItem();
teamArea.setName(teamAreaName);
teamArea.setProjectArea(projectArea);
IDescription description = teamArea.getDescription();
description.setSummary("Programmatic Creation");
//get hierarchy....
hierarchy.addChild(parentTA, teamArea);//fails here

2 answers



permanent link
Martha (Ruby) Andrews (3.0k44251) | answered Jul 11 '08, 2:20 p.m.
JAZZ DEVELOPER
The ImmutablePropertyException often means you do not have a working copy of an item you are trying to modify.

Is the item you got the hierarchy from a working copy?

Martha
Jazz Team Build Component

permanent link
Vikas Setty (2162) | answered Jul 12 '08, 1:01 a.m.
JAZZ DEVELOPER
Thanks Martha, saving is possible after fetching the working copy.

The ImmutablePropertyException often means you do not have a working copy of an item you are trying to modify.

Is the item you got the hierarchy from a working copy?

Martha
Jazz Team Build Component

Your answer


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