Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,927

Question asked: Jan 08 '14, 7:37 a.m.

Question was seen: 4,731 times

Last updated: Jan 08 '14, 7:52 a.m.

Confirmation Cancel Confirm