Add users from Asset attribute as request participants
Platform Notice: Cloud Only - This article only applies to Atlassian apps on the cloud platform.
Summary
This document details how to automate adding multiple users as request participants based on an asset's attributes. It covers the process of configuring the automation to include them in relevant requests.
Solution
Automation's behavior with user Asset attributes
When using automation to copy users to an issue field from an assets object attribute, only the first user is copied if the attribute holds multiple users.
This happens because the smart value for the assets object attribute returns an array when multiple users are in the attribute.
Configure Automation to add multiple users as participants
In your automation, create a variable to store the users from your assets object's user attribute; in the example below, the asset attribute that stores the users is called Owners, so the smart value is {{issue.customfield_####}}.Owner}}

In the Edit issue action, use additional fields and JSON along with list smart value operations to update the field:

JSON
{ "update": { "Request participants": [ {{#Participants.substringBetween("[","]").split(", ")}} { "add": { "accountId": "{{.}}" } } {{^last}},{{/}} {{/}} ] } }Replace
customfield_####with your instance's actual Assets object custom field ID, which you can find via Settings > Work items > Fields, opening the field's context menu, and reading the ID from the URL.In this example, we're updating the 'Request Participants' field, and our variable is called Participants; make sure to change it to match your environment.
After configuring the automation, test it on an asset with 2 or more users in the attribute, and confirm that every user is added as a request participant — not just the first — since that's the specific behavior this workaround is correcting.
Was this helpful?