how to add users and groups in project roles using jira java api?

Vedant Kulkarni` May 11, 2017

how to add defaultUsers, defaultGroups in Jira using Java APIs?

1 answer

0 votes
Anil singh May 12, 2017
Vedant Kulkarni` May 12, 2017

ProjectRoleManager is linked with the project roles. I created project roles as shown below, but I don't know how to add users or groups to a project role.

ProjectRoleManager prm=ComponentAccessor.getComponentOfType(ProjectRoleManager.class);

ProjectRole pr=new ProjectRole() {

public String getName() {
// TODO Auto-generated method stub
return roleName;
}

public Long getId() {
// TODO Auto-generated method stub
return id;
}

public String getDescription() {
// TODO Auto-generated method stub
return description;
}
};
prm.createRole(pr);

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events