Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Leveraging Issue Level Security to control access to designated Issue Type


Hi, Everyone!

I hope you're well. 

I'm looking for a sans-scriptrunner solution to limiting visibility/access to a certain issue type/queue.

I would like my Database Administrators issuetype to be limited to members of the Database Administrators project role to view and work on. 

I am running into an issue with embedding the issue security level within the issue. Here are the methods I've attempted so far:

Method #1 - Post Function

Using a post function within the Database Administrators workflow that sets the issue security level based on Reporter group membership

Post Funtion.JPG

Blocker - It doesn't appear that the issue security level is not being appended to the issue at the 'Create' transition. 

Method #2 - Automation Rule

Automation Rule set to trigger upon creation of request of  "Database Administrators" issuetype in our designated Project, which will then alter the value for 'Security Level' to "Database Administrators"

Automation Rule.JPG

Blocker - Error Recieved - 

Edit issue
No fields or field values to edit for issues (could be due to some field values not existing in a given project):
Method #3 - Embed within the issue view
Mapped 'Security Level' field to appropriate screen > Attemped to add a field to the issue view and cannot select any value but, 'None' & cannot select 'None' as a default value. 
issue sec 1.JPG
issue sec 2.JPG

Blocker - Error Recieved - "You must enter a preset value for a hidden field."

2 answers

1 accepted

May be a silly question but have you created your issue security scheme and set the issue security permission for the Jira automation user?

This. Your Automation user does not have access to edit the Security Level. You should set up a Security Scheme and be sure to include the Automator in the Security Level, then it will set correctly. This is definitely the easiest approach of the three, and the one I would suggest. I've implemented something similar and it works fine.

Richard + Lynne,

I appreciate the tip, greatly! I did not in fact have my Automation for Jira user provisioned with the 'Set Issue Security' permission, so thank you for that call out! I then added my Automation for Jira user to the Database Administrator security level as directed @Richard Fay & BAM! Gold advice! Can't tell you how much I appreciate it, you two!


Dan A. - Manager, The Service Desk at SurePrep

Like # people like this

Please check if this link helps you Scriptrunner Script 

Dirk Ronsmans Community Leader Sep 29, 2021

He's looking for a solution without scriptrunner :)

Like # people like this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events