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?
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.