The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JSU Cascade Validation

Matthew Patton
January 28, 2022

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. 

 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Tim Perrault
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 28, 2022

Hi @Matthew Patton

 

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

Matthew Patton
January 28, 2022

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. 

(.+?, .+?)

Like Tim Perrault likes this
schneurk
August 31, 2022

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?

2022-08-31_12-28-17.jpg2022-08-31_12-29-17.jpg

0 votes
schneurk
August 31, 2022

Redacted

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events