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.
Are there any other methods we I can use here?.
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?.
3 answers
The deprecation javadoc on the methods suggest using ITeamWorkingCopy. So, you can call getTeam().getRoleCast().
Martha
Jazz Developer, Process Component.
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?.
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()]));
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
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()]));