We few times got asked to block the creation of some specific issues types from users except a specific set (such as admins or app users).
As you may know, the "create issue" sadly transition does not support conditions.
Let me therefore share some rather unknown workaround solution.
As it is not possible to add conditions to the create issue transition on workflows, the only way to set up the requested behaviour is through the use of validators.
Some apps, such as JWME allow to direclty select specific users through the "User Validator" with a lot of settings such as the group or role membership.
Natively, there are two ways of doing so.
Creating an issue relies by default on the "create issue" permission. It is possible to add another Permission Validator to the transition and select the required one so that all users do not have it except targeted ones.
For example, if all the users but admins can create the task issues, we simply need to add the "Only users with administer projects permission can execute this transition." validator.
In case we want to give this permission to more users, we could as well use another permission which is not often used, for instance, the View aggregated data permission.
We can then edit the permissions scheme of the project so that a specific role or groups gets this permission.
Cons:
Another way of doing it is by making use of the Field has been modified validator, tunning the Groups exempt from the validator to set up an allowlist. The following parameters need to be used:
Now, all the users part of the designated group will be allowed to create issues of this type. Others will see a nice custom message:
Pros:
Con: It is not possible to use roles or single users, but hey that's a workaround right?
Why the "creator" field you might ask? Well because this field is automatically populated with the reporter's value when clicking the create button. Plus it cannot be changed in the create screen.
Hope you will like this little hack 🐱🏍
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Improve user experience across Jira with global settings
Learn how to set up and configure a Jira site, manage Jira permissions, and configure Jira apps and integrations.
Learning Path
Streamline projects across Jira with shared configurations
Build Jira work items with reusable configurations called schemes, and reduce administrative work with automation.
Learning Path
Become an effective Jira software project admin
Set up software projects and configure tools and agile boards to meet your team's needs.