Dear experts,
We are trying to limit the Issue types available depending on the user Role on a project.
Based on this, https://scriptrunner.adaptavist.com/latest/jira/recipes/behaviours/restricting-issue-types.html, we are able to have this limitation for a standard issue creation via the normal button as shown below:
The issue occurs when being in the "Agile Board" backlog where there is also a shortcut on the bottom of the screen for creating issues as shown on the picture below:
Many thanks for the support,
Dylan
I found a workaround for this by using Validators and behaviors in the "Create" transition (first transition) of our workflow.
Thanks to ScriptRunner, I restrict the issue creation to specific types and roles:
devIssueTypes.contains(issue.issueType.name) && "Developers" in projectRoles
The only problem is that this option does not change the UI and there is still the possibility to select among all the issue types when creating the issue.
Therefore, Developers (they can't create a bug) will still be able to select the "Bug" issue type as shown below.
Then the validator will run and open the "Create Issue" window while generating an Exception and only then the behaviors will restrict the the types, in the UI, to only three (Story, Task, Defect).
Thanks,
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.