Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Is there a way to prevent a user from assigning an issue to themselves for a follow on status?

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

3 answers

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"))

Assignee(not mandatory).png

Hope this helps!



0 votes
Vikrant Yadav Community Leader May 26, 2021

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 .

User in role.PNG As @John Funk  said if have any other plugin like Script Runner or JWME you can use those also for putting condition. 



0 votes
John Funk Community Leader May 26, 2021

Hi @Crazy Cam  - It will probably take an add-on like JWME or ScriptRunner to be able to control that. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

172 views 1 6
Read article

Atlassian Community Events