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