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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

14 votes
Answer accepted
Rudy Holtkamp
Community Champion
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 Champion
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 Champions.
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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events