It's all about the answers!

Ask a question

how to add users and roles to Team Area using Plain Java API ?


Kaushambi Singh (371310379) | asked Jun 07 '13, 5:05 a.m.
edited Jun 20 '13, 7:29 a.m.
How can we add list of users to Team Area using Java API ? Users already exists in the repository. It just that I need to add them in Team Area and assign roles.

Comments
Kaushambi Singh commented Jun 10 '13, 7:05 a.m.

Please help with the answer.

2 answers



permanent link
Ralph Schoon (63.5k33646) | answered Jun 10 '13, 11:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Here is code to find process area (team/project) areas etc: https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/

If you have the process area, here is the API to add a contributor:
processArea.addMember(contributorHandle)

https://rsjazz.wordpress.com has other posts that describe how to get to the contributor handle from the ID.

permanent link
Jay Toogood (1) | answered Sep 08 '14, 2:54 p.m.
Hey Ralph, as near as I have been able to find adding a contributor to a Role in a Project Area cannot be done with the plain java api for 3.0.1 correct?  And is the same true for setting the license also?

Comments
Ralph Schoon commented Sep 09 '14, 1:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

As adding members and setting roles for members in a project/team area is shown in the samples that ship with the Plain Java Client Libraries and I show it here too: https://rsjazz.wordpress.com/2013/09/18/deploying-templates-and-creating-projects-using-the-plain-java-clients-library/ this is a false assessment.

You can also set licenses, however it is a bit less straight forward and I have not done a sample. I just looked into the SDK and found where it is tested.

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.