How to auto populate attributes into Assets custom field using Automation
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
Use Jira Automation to read an attribute value from an Assets object and write it into a custom field on a JSM work item automatically.
Environment: Jira Service Management Assets Cloud (Premium)
Requires an existing Assets object schema and object type, an Assets custom field on the JSM screen, and a destination custom field on the same screen.
Solution
Create an Object schema and an Object type for Assets.
In the Assets object type, add the Address attribute.
On a newly created or existing object, update the Address attribute with a value.
Create an Assets custom field and add it to the JSM screen.
Add a new text custom field and add it to the same JSM screen. For example, Address.
Create the automation:
Trigger: Work item created (or any trigger appropriate to when the field should update)
Lookup Objects action — select the schema and set Query (AQL) to:
"Key" = "{{customfield_XXXX}}"Edit issue fields action — set the destination field (e.g. Address) to:
{{lookupObjects.Address}}
Publish the rule, then test it on a single controlled work item to confirm the AQL matches the object and the attribute value populates — before applying broadly.
Was this helpful?