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. IContributorManager contribService= teamRepository.contributorManager(); 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. I suppose it would be something like: ITeamArea teamArea = teamArea.addMember(user) Any idea? Thanks! |
5 answers
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. 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 |
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! |
Why do you use java api to add a user to a team area? Normally, we should use UI to add user.
|
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! |
Thanks for pointing the good solution.
Nice and complete article! |
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.