Update Asset
We've provided an easy way to update Insight/Asset objects in Automation for Jira. For example, you can use the Update Asset with ScriptRunner action to update the attributes of an Assets object when an issue is updated.
When you use this action, make sure you specify object type and attributes in JSON format. You can provide either the objectKey as a string, OR the objectId as an integer.
Example: Update an issue’s Assets object when you update an issue
In the following example, we want an object linked to an issue to be updated when the issue is updated, specifically, we want the object’s name to update if the issue summary is updated. In the following example, our objects are linked to our issues through an Assets (Insight) object custom field called Computer.