The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Utkarsh Agarwal
Community Champion
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