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

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
            IClientProcess clientProcess = service.getClientProcess(Teamarea,
IRole[] availableRoles = clientProcess.getContributorRoles(
                    contributor,Teamarea, null);


One answer

permanent link
Ralph Schoon (63.3k33646) | answered Jan 08 '14, 7:52 a.m.
Please see 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.