Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JMWE Scripted (Groovy) Validator Question Edited

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

Hi Shelli,

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

issue.get("Field B") != "Yes" || issue.get("Field A")

Worked like a charm. Thank you 

Mr @David Fischer _Appfire_ 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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you