How to create a Label based Issue Security Level in Jira projects.

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

   

Summary

Jira Admin would like to create a label based role, with which, if we add the user to the project with the Label Based permission, the user will only be able to view (if required edit) only tickets/epics that have a specific label on them.
Example: User A has been given Label view role permissions for Project A, and the User A will only be able to see ticket with the label "ABC" on them, other tickets with labels "DEF" won't be visible for the user.
And if we add another user B with similar permissions, he should only be able to see tickets with labels "DEF" and not "ABC".

This article lists out the solution and the steps with which we achieve the above setup which will help the Jira Admins.

Environment

Jira Cloud.

Solution

Unfortunately, Native JIRA can't do this as Labels cannot set the Issue Security level in the project. However, we can do this using the Automation for Jira. and Set Issue Security in the Permission Scheme sets who can see what issues. Please refer to the documentation: Configure issue security schemes

We can trigger the rule upon issue creation or on change to the Labels field. Then use Condition/ If-Else steps to evaluate the Labels field and set the Security Level. Note that the Actor of the rule would have to be a member of each Security Level that could be assigned. 

The trick here is using smart values to check the change to the label field. Please check the following setup of the Automation rule:

Of course, we'll need to create the required Security Levels for the project, so that we can set them and the automation rule will set the security level to that issue as per the label value.


Last modified on Aug 22, 2024

Was this helpful?

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