Using Assets objects fields with Automation Smart Values

Richard Hayes January 21, 2025

I need to create an Automation that sends an email referencing an Assets objects custom field.  I can find my field in the Smart Values library and add the Smart Value to the Automation but when the Automation runs it displays the object's key value in the email rather than the name of the object. Looking for a solution that picks up an Object's name rather then its key.

1 answer

1 accepted

3 votes
Answer accepted
Mikael Sandberg
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 21, 2025

Hi @Richard Hayes,

Welcome to Atlassian Community!

What smart value are you using? Since you say that you get the key instead of the name I would assume that you are using something like this: {{issue.asset object}}. If so that is expected and you would have to use the dot notation to get the name, like this: {{issue.asset object.Name}}. You can read more about this in this KB

Richard Hayes January 21, 2025

Hi @Mikael Sandberg 

I'm using {{issue.customfield_17913}} as my smart value with 17913 being the ID of the field I need to reference.  How do I use {{issue.asset object.Name}} so that it picks up the object name from the correct field?

Mikael Sandberg
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 21, 2025

Just replace the asset object with your custom field like this: {{issue.customfield_17913.Name}}, this will get the name of the object instead of the key.

Like # people like this
Richard Hayes January 22, 2025

Fixed. Thanks @Mikael Sandberg

Like Mikael Sandberg likes this

Suggest an answer

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

Atlassian Community Events