I'm using the Jira data center with version 8.20.11. My requirements are as follows:
Only the "Developer" project role can create P1 and P2 priority tickets for only the story issue type. meaning the priority field must show only the P1 and P2 options if the user has the developer role. And for other project roles, members can raise any priority tickets.
Please let me know what is the possible way to achieve this.
Welcome to the Atlassian Community!
Your requirement seems a little muddled, so I'm going to answer for a guess at what you meant. ("Only developers can create P1 and P2" clashes with "any other role can raise any priority")
I think you mean just "Only developers can create P1 and P2 as well as P3, P4, P5, etc, and anyone else can raise P3, P4, P5, etc."
This is best to do with a validator, although you will need to look for an app to provide one that can be configured to say "Only allow role developer to create/transition issues with P1 or P2 selected". This has weakness in that a user could edit a P3 up to a P1 without being a developer.
But I would suggest you do it with Behaviours in Scriptrunner as well - you can remove P1 and P2 for non-developers from the create, edit, and transition screens (it can be bypassed, but it's not easy, and most people won't care to try)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.