You can now vote for scripts to help people know if they're useful or not. Login or create an account to vote!


Confirm the Security Level is Correct for a User to Be Able to Transition


A Simple Script Validator enforces the security level of an issue to private when the reporter's domain is


I am a Project Manager. I want the reporting users with a certain domain to be able to transition only tasks with a certain security level.

Good to Know

  • You can choose the domain of the users affected by the validator.
  • You can choose the Issue Security Level name of the issues that users can transition.
  • For the script to work correctly, all the available corresponding permission settings for the Issue Security Level field are required.


  • Jira Jira (8.0 - 8.14)
  • ScriptRunner for Jira ScriptRunner for Jira (6.18.0)
import com.atlassian.jira.component.ComponentAccessor import def reporterDomain = issue.reporter.emailAddress.split('@').last() // if the reporter domain is then the issue should be private if (reporterDomain == '') { def securityLevelManager = ComponentAccessor.getComponent(IssueSecurityLevelManager) def securityLevelId = issue.securityLevelId return securityLevelId ? securityLevelManager.getIssueSecurityName(securityLevelId) == 'Private' : false } true
Discovered an issue? Report it here

Suggested for you