Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Value from Asset to Update Custom Field Value

Jack Yang
Contributor
May 7, 2025

Hi there, 

 

I have assets set in our site, the schema tree is like 

Object schemas name: Tooling Log

Country/Area, then Manufacturer

Screenshot 2025-05-07 at 4.00.56 PM.png

 

And now I'd like setup an automation rule, when asset be selected in a ticket, automatically update value for some fields, and copy "Contact Name" and "Contact Email" value from selected value.

 

I tried following JSON script, but get error message "Failed to get value for assetFieldValue('Tooling Log', 'Contact Name')"

Screenshot 2025-05-07 at 4.08.04 PM.png

 

Can I get some advise for setting it up?

Thanks in advanced.

 

1 answer

1 accepted

2 votes
Answer accepted
Tomislav Tobijas
Community Champion
May 7, 2025

Hi @Jack Yang ,

You should be able to pull object's attribute value just by using the following smart value:

{{issue.customfield_XXXXX.Contact Name}}

where customfield_XXXXX is Assets field on the ticket, and Contact Name is the attribute name (in your example).

So, there's no specific need in this case to use additional fields section within the rule action.

For example, just write that smart value in the field input box in the edit work item action:

2025-05-07_10-42-11.png

Hope this helps.

Cheers,
Tobi

Jack Yang
Contributor
May 7, 2025

Hi Tobi,

 

Thanks for sharing this, I set the rule successfully, thanks again for your help.

 

Best,

Jack

Like Tomislav Tobijas 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