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

Set Field Based on Cascading Custom Field

Jh
Contributor
September 25, 2024

I have been struggling to get my automation to work properly.

My goal is to append to a customfield - Approvers based on the values selected on a cascading customfield.

Attached are pictures of my automation and the audit log. Even when I Log the values of the parent and child values, which show, the If block seems to still not pass the logic. I've tried with {{issue.customfield_xxxxx.parent.value}} and {{issue.customfield_xxxxx.parent.id}}.

 

2024-09-25_07-13-14.jpeg2024-09-25_07-14-38.jpeg2024-09-25_07-19-04.jpeg

2024-09-25_07-20-13.jpeg

2024-09-25_07-16-48.jpeg

1 answer

1 accepted

3 votes
Answer accepted
Bill Sheboy
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.
September 26, 2024

Hi @Jh 

The log shows the condition was not met as an incorrect smart value was used...to access the parent of the cascade field, just use value:

{{issue.customfield10243.value}}

The child reference you use is correct:

{{issue.customfield10243.child.value}}

 

I recommend using this how-to article as it may help to review the structure / smart values of an issue to understand how rules access them: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

 

Kind regards,
Bill

Jh
Contributor
September 27, 2024

@Bill Sheboy 

Oh man, I can't believe it was so simple! I removed the ".parent.value" and just used .value for the parent option and it works. Thank you!

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events