Hi Team How to validate cascading field in both parent & Child value in using script runner
Hi @Durga Prasad
To answer your question, allow me to introduce the Ultimate Validator — a feature we developed as part of the Workflow Building Blocks for Jira for Jira app. It solves your use case without requiring you to learn Jira Expressions. At the same time, the built-in Jira Expression Preview feature allows you to understand how the expression is constructed. Since you already have an app that supports Jira Expression-based validators, you can simply copy the generated expression and use it in the tool of your choice.
Here are some examples that may cover your specific cases:
1. Checking that both parent and child options are selected:
2. Validating that both parent and child exact values were selected:
I hope it will help
Cheers
Hi Maciej,I really appreciate your Suggestion it is very useful to me.Thanks Durga prasad
Hi Maciej,Good Day!!!I hope you are doing wellI need one help for your side if we have any possible ways to validating the fields by using this plugin.For suppose i have one field name(ABC) single select field 123if i can select value 1 then (XYZ) Custom field is mandatorywhen i select 2 or 3(XYZ) Custom field is non-mandatoryPlease share your suggestionsI would like ready to hearThanksDurga Prasad
Yes, it is possible using the OR operator, although you need to slightly adjust the logic.The validator should allow the transition only when the conditions are met. Therefore:
Check whether "value 1" is not selected
OR, if it is selected, check whether the XYZ custom field is mandatory
It will look like this:
I hope it will help!Cheers
It looks like you're new here. Sign in or register to get started.