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.
Hi @Helena ,
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.
Hope this helps!
Regards,
Suprija
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.