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

Add User to Team Area

Hi,

I'm triying to add programmatically a determinate user to a determinate project area, but I'm having some problems on 'finding' the Team Area.

Get User:

IContributorManager contribService= teamRepository.contributorManager();

IContributor[] user = new IContributor[1];
user[0] = contribService.fetchContributorByUserId("sdfsd", null)


Get Team Area:
Can't find a way to get a Team Area by any attribute. I've tryed from IProcessClientService, and the IProjectArea but can't find anything.

Add user to the area:
I suppose it would be something like:
ITeamArea teamArea = teamArea.addMember(user)


Any idea?

Thanks!

0 votes



5 answers

Permanent link
We need to add them to several Team Areas programmaticaly because we have to introduce over 5000 users, so do it using the UI is not an option.

Thanks!


Currently, we don't have public Java API to manipulate process memberships. But we do support it in REST API. Here is the guidance about bulk manipulation of process memberships: https://jazz.net/library/article/633

1 vote


Permanent link
Searching i've found https://jazz.net/forums/viewtopic.php?t=14812
an approach to get a determinate Team Area through IItemManager.fetchCompleteItem() but can't manage to make it work, and I can't find any snippet.

Any idea/reference/snippet on how to approach to this?

Thanks!

0 votes


Permanent link
Why do you use java api to add a user to a team area? Normally, we should use UI to add user.

0 votes


Permanent link
We need to add them to several Team Areas programmaticaly because we have to introduce over 5000 users, so do it using the UI is not an option.

Thanks!

0 votes


Permanent link
Thanks for pointing the good solution.

Nice and complete article!

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
× 10,941

Question asked: Sep 07 '11, 11:07 a.m.

Question was seen: 6,745 times

Last updated: Sep 07 '11, 11:07 a.m.

Confirmation Cancel Confirm