I'm trying to figure out a way to make both the Parent and Child options required for a cascade field. The exception to the rule is if they select "Other", then there is no child option needed/available.
I haven't been able to find anything in documentation or online on validating values for cascade fields using JSU. I am testing JSU on trial, the only way I see possible is using java regular expression but do not know how to set a regular expression for cascade values.
Take a look at this page from the Beecom Support Knowledge page. That should give you the start you need.
Let me know if you have any questions setting it up.
Thanks,
Tim
Hi Tim,
Thank you this worked perfectly.
Here is my use case for anyone else looking for solution.
I have the options Quality Escalation, Production Escalation, and Other. When Other is select the second option is not required.
(Other|((Quality Escalation|Production Escalation), .+?))
I tested out use case to make all states require a child option and the following regular expression seems to work.
(.+?, .+?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this logic as well but it's not working.
For example:
Field is Decision and Regular expression is (Passed|((Verification|Termination), .+?))
When Passed is selected and no child is selected, error is thrown.
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.