smart value for cascading select field

Gomez, Daniel
Contributor
September 16, 2020

Is it possible to get the smart value for a cascading select field? I can get the value for the field but not the parent and child fields under it. 

2 answers

1 accepted

14 votes
Answer accepted
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2020

To get the value of the parent:

{{issue.fields.Cascade.value}}

And for the child:

{{issue.fields.Cascade.child.value}}
Gomez, Daniel
Contributor
September 16, 2020

thanks! I got that to work! Here's my example:

{{issue.Plaza.value}} {{issue.Plaza.child.value}}

Like # people like this
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2020

Good, I was just typing a reply. 

But the first is indeed the parent value and the second the child.

So for future reference: below there is a Cascade1 field, where the first value is 'option2' and the child value is 'sub2.2'

image.png

And here is the smart values output:

image.png

Like # people like this
Slava Gefen
Contributor
May 31, 2022

Thanks! It works (y)

Like Rudy Holtkamp likes this
0 votes
Alex
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.
July 29, 2024

JSON for Automation rule : "Edit fields"


{
"fields": {
"customfield_22500" : {"value": "{{issue.fields.NameYourField.value}}", "child": {"value": "{{issue.NameYourField.child.value}}"} }
}
}
Vũ Tuấn Anh (VF-IT-KVH) October 4, 2024

Hi Alex
I have an error when copy value.

Capture.PNGCapture1.PNG

Slava Gefen
Contributor
October 4, 2024

Hey @Vũ Tuấn Anh (VF-IT-KVH) ,

Are you sure the values you get by using of {{smart.values}} existing in the field you try to update?

You can use log action to print them and see what you are getting.

And I see that you are updating the same field which you use smart-values for.

With kind regards
Slava

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events