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

'Fields Required Validator (JMWE app)' Validator - field2 required if field1 has value X

Can I add the following validator to transition into Close status:

If cascading list first value = Something, then custom field 'Field 2' is required

If cascading list first value = AnythingElse, then custom field 'Field 2' is not required


Was trying to use 'Fields Required Validator (JMWE app)' Validator,

selected the field: 'Field 2',

put the error message (optional),

selected 'Conditional validation', but can't get my condition working.

Also haven't found any similar example. Is it even possible to create sth like this?

Both fields are added on the screen.


1 answer

1 accepted

Hi @Helena Tubli ,

In the Field required validator, add the below code in the Conditional validation, which returns true if the parent value of the cascading field is equal to "Some value". 

issue.get("customfield_11601")?.get(null)?.value == "Some value"

customfield_11601 -> id of the cascading field. Modify the field id and the value as per your use case.

You can refer to "Issue Fields" tab in the Help section for snippets on how to access/test the value of fields.

JMWE conditional validation.png

Hope this helps!



Thank You Suprija! This worked.

I had altered the same condition wrongly (new to this syntax).

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

325 views 4 6
Read article

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