Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to compare Assignee to a custom field to ensure they are not the same person?

Gile Empey April 21, 2022

I want to compare two values, Assignee and Test Engineer (custom field). These two should NOT be the same individual to ensure the Assignee is not the one testing the work to. I would like to either prevent the ability from even selecting the same person, but at a minimum, don't allow it to transition to the next status if they are equal. Any suggestions on how I could accomplish this?

1 answer

0 votes
Mikael Sandberg
Community Champion
April 21, 2022

Hi @Gile Empey,

Welcome to Atlassian Community!

Yes this can be done, and you have a couple of options. On is to get an app that allows you to create a validator that compares the two fields. I know you can do that using Scriptrunner, but other workflows apps in the Marketplace could likely also allow you to do that.

Another option that I am using is to have an automation that compares two fields. I use it as a simple separation of duties for approvals, and the automation looks like this:

Separation of duties.png

Gile Empey April 21, 2022

Thanks for the reply. Trying to do it without any paid 3rd party tools if possible (I'll dig around to see if there are free ones that may help).

The automation won't work unfortunately as I want to prevent it from being transitioned if they are the same person. Better yet, they shouldn't even be able to set the Test Engineer as the same person (or vice versa) as the assignee without transitioning. 

Mikael Sandberg
Community Champion
April 21, 2022

In that case your only option have to be an app, default Jira doesn't have a validator that would allow you to compare two fields.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events