Would like to use Script Runner.
a post function where based off of the Project Role of the assignee, the security level would change to X
Here's a sample:
import com.atlassian.jira.ComponentManager import com.atlassian.jira.component.ComponentAccessor im = ComponentManager.getInstance().getIssueManager() prm = ComponentAccessor.getComponent(com.atlassian.jira.security.roles.ProjectRoleManager.class) role = prm.getProjectRole("Managers"); //issue = im.getIssueObject("MKT-14") // in the post function you should have issue variable in the context of the script if(prm.isUserInProjectRole(issue.getAssigneeUser(),role,issue.getProjectObject())) { issue.setSecurityLevelId(10000); issue.store(); }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Note that the user executing the transition should have "Set Issue Security" Permission for that project/issue, so the postfunction is able to set the level
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.