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
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"
Blocker - Error Recieved -
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