Forums

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

Error Pop up if the users are same on the both fields.

Venugopal Paladi
Contributor
January 26, 2022

Hi All,

I have used two fields in Jira workflow (Data center). 

1. Peer reviewer field and 

2. Primary Technician field. 

Both are user pickers fields.

 

Request:   If the Peer Reviewer field is the same as the Primary Technician field, the transition should fail with an error.

Please help me to achieve this. We are using JWT, JSU and Scriptrunner Add-ons.  Let me know if this can be achievable with one of the above plugin.

 

Thanks!

 

1 answer

0 votes
Utkarsh Agarwal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2022

Hi @Venugopal Paladi ,

You can setup a Scriptrunner validator on the workflow transition. Extract out the values of both the fields and compare. You can also add a custom error message with simple script validators,

You can refer a few examples here to get yourself started.

Kind Regards
Utkarsh

Suggest an answer

Log in or Sign up to answer