Forums

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

Advance compare condition - cascade custom fields

maria.quintana April 1, 2022

Hello Jira community. 

 

I hope you can help me with this question:

1. I created a cascade custom field. The parent is Electric and the children are :Broken light switch, Emergency lights not working, Lights not working, Power point not working, No power at all MFC, Additional sockets required. 

2. I want to select in the second value only two options of the child (Broken light switch and emergency lights not working . How can I do it? I tried  in the second value (Broken light switch | Emergency lights not working) but did not work :(

 

Advance compare condition:

First value: {{issue.customfield_10155.child.value}}

Condition: Equals

Second value: (Broken light switch | Emergency lights not working). This is the open that I need help!



1 answer

1 accepted

2 votes
Answer accepted
Fernando Eugênio da Silva
Community Champion
April 1, 2022

@maria.quintana ,

Hey, try this:

 

First value:

{{issue.customfield_10155.child.value}}

 Condition: Contains Regular Expression

Regular Expression:

 (Broken light switch || Emergency lights not working)

 

I believe this works to you.

If you have problems, let me know.

Regards,

Fernando 

Fernando Eugênio da Silva
Community Champion
April 1, 2022

@maria.quintana ,

Just update:

 

First value:

{{issue.customfield_10155.child.value}}

 

Condition: Contains regular Expression

 

Regular expression:

(Broken light switch|Emergency lights not working)

 

I think that´s right now :) 

Like Ryan Thomas likes this
maria.quintana April 1, 2022

It worked :)

 

Thank you so much!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events