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, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events