Automation adding multiple labels at once from a custom field smart value

Harrison Ponce
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 10, 2025

I want to create an automation that adds label(s) when another field is updated. For example, when an asset custom field (can select one or more values) is modified, I want to set the Labels field using the values currently present in the asset custom field. I already have the smart value figured out to get the specific attribute name I want. {{issue.customfield_#####.Attribute Name}} but when it is more than one value, it is trying to add the label with space --> "Asset1 Asset2"

I think I have to use smart values with lists here somehow, and maybe JSON, but couldn't find quite what I needed in the past community forums to pull this off.

Any ideas?

automation.png

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2025

Hello @Harrison Ponce 

It will help us help you if you provide us with a screen image that shows your entire automation rule. We can then provide advice tailored to the structure of your rule.

Harrison Ponce
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 10, 2025

It's quite basic at the moment, but I added a screenshot to my original post.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2025

Hello Harrison,

You would need to use Advanced Branching to iterate through the list of assets. See the Advanced Branch and Edit Issues action I created below. Add a Re-fetch Issue Data action to make sure your rule has an updated copy of the edited issue for the next iteration of the branch.

Screenshot 2025-01-10 at 3.36.17 PM.pngScreenshot 2025-01-10 at 3.36.37 PM.png

Suggest an answer

Log in or Sign up to answer