Restrict access to certain Jira Cloud work items based on the value of a custom field
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Restrict access to Jira work items using a custom field value with Work Item Security Schemes and Automation Rules.
Environment
Jira Cloud
Jira Service Management
Solution
We can restrict access to certain users based on the value of a custom field in Jira using Work Item Security levels and Automation rules.
Here's a general overview of how you could set that up:
Create a Security Level
Go to Project settings.
Select Work item security schemes.
Add a new security level or edit an existing one. In this example, we will use Restricted Access - CustomFieldValue A.
Assign the above security level to a group of users of the CustomFieldValue A group you want to restrict.
Add a new security level and name it. For example, Restricted Access - CustomFieldValue B.
Assign the above security level to a group of users of the CustomFieldValue B group you want to restrict.
Note: You have to create work item security for each dropdown available in the custom field.
Set up Automation
Create an automation rule that changes the security level based on the value of a custom field.
Go to Project settings.
Select Automation.
Add a new rule.
The automation rule could look like the following:
When: Work Item Created
Condition: Custom field equals specific value like CustomFieldValue A.
Action: Set the work item security level to Restricted Access - CustomFieldValue A.
Create a new automation rule for CustomFieldValue B of the custom field similar to the above.
Remember, only the users who have been assigned the Restricted Access security level will be able to view or edit the work item.
Was this helpful?