It's all about the answers!

Ask a question

how to get the list of roles assigned to a user from a teamArea


Rajkumar Rangaswamy (1113) | asked Jan 08 '14, 7:37 a.m.
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



permanent link
Ralph Schoon (63.1k33645) | 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


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.