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

Getting contributors and related process roles assigned.

Hi

I am trying to get the process roles assigned for the users/contibutors at project area level.

I am using below API but the getMembers and getRoleCast methods but are deprecated.

List<IContributor> existingTeamMembers = processAreaWorkingCopy

.getMembers();

IRole[] existingProcessRoles = processAreaWorkingCopy
.getRoleCast(existingTeamMember);


Are there any other methods we I can use here?.

0 votes



3 answers

Permanent link
The deprecation javadoc on the methods suggest using ITeamWorkingCopy. So, you can call getTeam().getRoleCast().


Martha
Jazz Developer, Process Component.

Hi

I am trying to get the process roles assigned for the users/contibutors at project area level.

I am using below API but the getMembers and getRoleCast methods but are deprecated.

List<IContributor> existingTeamMembers = processAreaWorkingCopy

.getMembers();

IRole[] existingProcessRoles = processAreaWorkingCopy
.getRoleCast(existingTeamMember);


Are there any other methods we I can use here?.

0 votes


Permanent link
But we want to remove the project members at project level and not at team level,for this do we still need use the below methods:

processAreaWorkingCopy.[b]getTeam().removeContributors[/b](teamMemberList_ToBeRemoved.toArray(new IContributorHandle[teamMemberList_ToBeRemoved.size()]));


processAreaWorkingCopy.[b]getAdministrators().removeContributors[/b](scmAdminList_ToBeRemoved.toArray(new IContributorHandle[scmAdminList_ToBeRemoved.size()]));

0 votes


Permanent link
You can use IProcessAreaWorkingCopy.getTeam() to get the ITeamWorkingCopy for a project area or team area. With the ITeamWorkingCopy you can manipulate the roles, add contributors or remove contributors.

Martha
Jazz Developer, Process component


But we want to remove the project members at project level and not at team level,for this do we still need use the below methods:

processAreaWorkingCopy.[b]getTeam().removeContributors[/b](teamMemberList_ToBeRemoved.toArray(new IContributorHandle[teamMemberList_ToBeRemoved.size()]));


processAreaWorkingCopy.[b]getAdministrators().removeContributors[/b](scmAdminList_ToBeRemoved.toArray(new IContributorHandle[scmAdminList_ToBeRemoved.size()]));

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

Question asked: Apr 25 '11, 7:42 a.m.

Question was seen: 8,180 times

Last updated: Apr 25 '11, 7:42 a.m.

Confirmation Cancel Confirm