Behaviours allow you to change how fields behave on issue Create or Update screens.
Use this script to restrict the issue types available on the Create or Update screen.
As a project manager, I want to limit the issue types which a user can pick at the time of creating an issue.
I can use this script to restrict the issue type options available in the picker depending on the user's project role.
For instance, non-core members of the project can create "Query" issues, whereas developers can create "Bug", "Task" and "New Feature" issues.
Good to Know
Set up this script as an initialiser.
In case of having translated issue type names, the original names and the translations must match. Otherwise, the script might not behave correctly.