how to add defaultUsers, defaultGroups in Jira using Java APIs?
Hi
please find the API link to add project role.
https://docs.atlassian.com/jira/6.2.6/com/atlassian/jira/jelly/tag/projectroles/AddActorsToProjectRole.html
Thanks
Anil Singh
Programmer Analyst
http://www.mirketa.com/
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 stubreturn roleName;}public Long getId() {// TODO Auto-generated method stubreturn id;}public String getDescription() {// TODO Auto-generated method stubreturn description;}};prm.createRole(pr);
It looks like you're new here. Sign in or register to get started.