It's all about the answers!

Ask a question

How can I create TeamAreas programmatically?


Lara Ziosi (33811112) | asked Jun 08 '10, 6:38 a.m.
From a Java Client, I would like to create TeamAreas programmatically.

I would like to mirror the existing WorkItem Categories, which I have already created, and for each existing Category (also nested) create a TeamArea with same name and then associate it with that same Category.

1. Is this the right way?

IProcessItemService service = (IProcessItemService)teamRepository.getClientLibrary(IProcessItemService.class);
ITeamArea ita =service.createTeamArea();

2. What is the meaning of the two ITeamAreaHandle parameters of the call:

projectArea.getTeamAreaHierarchy().addChild(arg0, arg1);

and how would I get hold of them?

Thank you, Lara

One answer



permanent link
Sridevi Sangaiah (59179) | answered Jun 08 '10, 9:04 a.m.
JAZZ DEVELOPER
From a Java Client, I would like to create TeamAreas programmatically.

I would like to mirror the existing WorkItem Categories, which I have already created, and for each existing Category (also nested) create a TeamArea with same name and then associate it with that same Category.

1. Is this the right way?

IProcessItemService service = (IProcessItemService)teamRepository.getClientLibrary(IProcessItemService.class);
ITeamArea ita =service.createTeamArea();

2. What is the meaning of the two ITeamAreaHandle parameters of the call:

projectArea.getTeamAreaHierarchy().addChild(arg0, arg1);

and how would I get hold of them?

Thank you, Lara


Hi,

1. Yes it is the right way.

2. The first argument is the parent team area to which the newly created team area, passed in the second argument, will be added as a child.

Thanks,
Sridevi
Jazz Process Team

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.