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

Team area creation, is it possible programmatically?

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

0 votes



2 answers

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

0 votes


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

0 votes

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
× 11,052

Question asked: Jul 11 '08, 10:17 a.m.

Question was seen: 8,774 times

Last updated: Jul 11 '08, 10:17 a.m.

Confirmation Cancel Confirm