Automatically set work item Security Level based on Jira group membership

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

You're looking to set a security level based on whether the reporter of the issue belongs to a group that is in the security level.

Set security level using Jira Automation

Jira Automation (automatically included in Jira Cloud) allows you to automatically update work item fields, including security level, based on certain conditions.

  1. Go to Project settings > Project automation
  2. Select Create rule
  3. New trigger: Work item created
  4. New Condition: User condition
    1. User - Reporter
    2. Check to perform - User is in group
    3. Criteria - <your group names>
  5. New Action: Edit work item
    1. Choose "Security Level" field from the drop-down menu

Notes: The default Security Level in your security scheme must be "None." If not, the default security level will overwrite the update of automation.

Automatically set security level using ScriptRunner

An alternative to Jira Automation leverages the popular add-on Script Runner.

Please note that Atlassian can not provide technical support for ScriptRunner functions. If you encounter problems you may need to contact the add-on vendor.


  1. Create a copy of the current workflow
  2. Edit the Workflow
  3. Select the transition from Create to Open, then select post function
  4. Select Add Post Function
  5. Choose Script Post-Function and select Add
  6. Select "Set work item Security Level depending on Provided condition"
  7. Select Expand Example and Select "Reporter is a member of a particular group"
  8. Edit the name of the group in the textfield to match the name of your group
  9. Select the name of the Security from the Drop Down
  10. Select Add
  11. Associate the Workflow with your project

Now when members of the group create a work item the Security Level will be set to the one you configured for this post-function.

Last modified on Apr 28, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.