Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Vedant Kulkarni`
Contributor
May 11, 2017

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

1 answer

0 votes
Anil singh May 12, 2017
Vedant Kulkarni`
Contributor
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
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events