Restrict Issue Type Creation Based on Project Role

Ivan Monma
Contributor
November 21, 2024

Is it possible to restrict the creation of a specific issue type based on the user's role within a project? For example, I want only users with the "Developer" role to be able to create "Bug" issue types. How can I configure this in Jira?

2 answers

0 votes
Harrison Ponce
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2024

Hi @Ivan Monma ! Another thing to consider without a marketplace app is that if your issue type has a workflow that is not shared with other types, you can add validation to it based on role and that could work.

0 votes
Salih Tuç
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2024

Hi @Ivan Monma ,


Usually the right place for this operation is on "Validators" part of "Create" transition. However, with current setup of Jira Cloud, you cannot add this kind of validator to the workflow without a plugin.


So, you may consider adding some popular plugins such as ScriptRunner, JWT or JMWE in order to do that operation smoothly.

Also, as an alternative, you may not restrict the creation but you can add an automation that checks the user's role and automatically make transition to "Cancel" status.

Ivan Monma
Contributor
November 21, 2024

Hi @Salih Tuç thank you for your response! I already have ScriptRunner installed on my Jira Cloud. Could you help me with the best way to configure this restriction using ScriptRunner?

If a specific script is required, could you share an example or guide me on how to implement this effectively?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events