Forums

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

JMWE APP Groovy condition value with OR

Mateusz Janus
Contributor
January 7, 2026

Brothers and Sisters,

reffering to this article 

https://community.atlassian.com/forums/Jira-questions/Groovy-issue-VALUE-field-validation/qaq-p/3170649#M1163596

I want to build another validator when ticket status can be changed when at least one of below radio button field is "YES". I am using JMWE -> Build-your-own-validator.
1. customfield_1 (YES/NO)

2. customfield_2 (YES/NO)

At leas 1 field must be YES. So i guess i have to use "OR" in my groovy.

I tried below but it is not SO simple as i thought.


issue.get("customfield_1") == "Yes" or issue.get("customfield_2") == "Yes"

Can u help please...i know again it looks like VERY basic script but i have never worked with groovy before. 

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
3 votes
Answer accepted
Mateusz Janus
Contributor
January 7, 2026
(issue.get("customfield_11777") == "Yes") || (issue.get("customfield_11778") == "Yes")
0 votes
Mateusz Janus
Contributor
January 7, 2026

:)  I found it. Its ||

TAGS
AUG Leaders

Atlassian Community Events