JMWE Scripted (Groovy) Validator Question

SMAtlassianMber November 28, 2018

If I want Field A (a Text Field multi-line text field) to be required only if Field B ( a Select List single choice custom field) = Yes for a particular transition how would I go about that?

Add Validator To Transition - Scripted (Groovy) Validator (JMWE add-on) 

if (issue.get("FieldB").name == "Yes")

else (issue.field[FieldA].required)

 

1 answer

1 accepted

0 votes
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 28, 2018

Hi Shelli,

you can indeed use a Scripted (Groovy) Validator with the following script:

issue.get("Field B") != "Yes" || issue.get("Field A")
SMAtlassianMber November 28, 2018

Worked like a charm. Thank you 

Cesar Duran July 14, 2021

Mr @David Fischer you are a savior, as always, that's why JMWE it's my favorite plugin in Jira.

Suggest an answer

Log in or Sign up to answer