Forums

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

Assign Issue Security Schemes to project programatically

Ed Sattar October 6, 2013

I am writing a REST service in JIRA 5. I have created a project and assign project permission scheme through code.

Now i want to assign default issue security scheme to project. I am unable to find such code/class/method.

Regards.

2 answers

0 votes
Pedro Cora
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 6, 2013

Ed, currently through REST there's no such method. Try the JIRA Command Line Interface plugin, that adds a lot of funcionalities to JIRA. https://bobswift.atlassian.net/wiki/display/JCLI/JIRA+Command+Line+Interface

0 votes
RambanamP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2013

the following way we are setting securityscheme to project

Scheme issueSecurityScheme = issueSecuritySchemeManager.getSchemeObject("Scheme Name");
if (issueSecurityScheme != null)
	issueSecuritySchemeId = issueSecurityScheme.getId();
	
UpdateProjectSchemesValidationResult schemesResult = projectService.validateUpdateProjectSchemes(loggedInUser, permissionSchemeId, notificationSchemeId,issueSecuritySchemeId);
projectService.updateProjectSchemes(schemesResult, newProject);

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira service management, jsm webinar, ai in jsm, opsgenie integration, incident management, virtual agent, atlassian intelligence, ai-powered service desk, it operations, atlassian learning, service management webinar, team '25 recap

What’s new in Jira Service Management 🤔

Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.

Register here ⬇️
AUG Leaders

Atlassian Community Events