Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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 Leaders.
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 edited

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.jpg 2022-08-31_12-29-17.jpg

0 votes
schneurk August 31, 2022 edited

Redacted

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

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!
AUG Leaders

Upcoming Jira Events