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?

3 answers

1 accepted

2 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 22, 2024

Hi Ivan,

I can confirm you could limit issue types on creation to users in a certain project role using the Behaviours feature provided by ScriptRunner for Jira Cloud.

We have an example in our Script Library here, which shows how to do this.

Please note that currently Behaviours only works on Jira Software company-managed projects as documented here.

I hope this information helps.

Regards,

Kristian

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?

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 22, 2024

Hi @Ivan Monma , please check out the answer by @Kristian Walker _Adaptavist_ . I guess he is a faster gunslinger than me and he explained the answer in a detailed way :)

Have a nice day!

Like # people like this

Suggest an answer

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

Atlassian Community Events