how to get the list of roles assigned to a user from a teamArea
Hello,
Am trying to append roles to a user in a teamArea. Say for eg: Project Area : A TeamArea : B User X is available with 5 roles in Project Area A User X is available with 1 role in Team Area. I want to append an additional role to the user X in the teamArea B Unfortunately when i get the list of available roles for the user x in the teamArea, am getting the roles that are available from the projectArea A. Is there any way i get the list of roles for an user in a particular teamArea? IContributor contributor = repo.contributorManager() .fetchContributorByUserId(selectedUser, null); IProcessItemService service = (IProcessItemService) repo .getClientLibrary(IProcessItemService.class); IClientProcess clientProcess = service.getClientProcess(Teamarea, monitor); IRole[] availableRoles = clientProcess.getContributorRoles( contributor,Teamarea, null); Thanks, Raj |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Jan 08 '14, 7:52 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please see http://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ as I think it should give you a good starting point and most code you need.
|
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.