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.
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.
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!
Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events