You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am trying to make sure a developer cannot progress a jira all the way through the workflow on their own. I want to prevent then from say moving an IR from In Progress to In Code review and assigning themselves as the code reviewer.
I have a transition where the screen will pop up requesting an assignee (of course it populates with themselves if its already assigned to them) but I want to ensure they pick someone other then themselves to transition to the next status. Is that possible? I can't figure out which condition, validator, or post condition to use.
thank you
Hi @Crazy Cam ,
You can achieve your requirement using JMWE add-on.
Add a "Scripted (Groovy) Validator (JMWE app)" validator on the transition.
If the "Assignee" field is mandatory during the transition and it should not be the current user, then add the below Groovy Script :
!!issue.get("assignee") && !currentUser.equals(issue.get("assignee"))
Else, if the "Assignee" field is not mandatory during the transition, but if entered, then it should not be the current user, then add the below Groovy Script :
!issue.get("assignee") || !currentUser.equals(issue.get("assignee"))
Hope this helps!
Regards,
Suprija
Hi @Crazy Cam You can do this easily by putting condition in workflow.
First move all developers to a particular project role like Developers project role. Then put condition on the transition which you dont want to allow them.
This option is only available in codition when JSU plugin in installed in JIRA .
As @John Funk said if have any other plugin like Script Runner or JWME you can use those also for putting condition.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Crazy Cam - It will probably take an add-on like JWME or ScriptRunner to be able to control that.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.