Forums

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

Automation to add additional Assets Objects to Custom Field

johnsonj
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 15, 2023

I'm trying to setup an automation that runs when an issue is created that adds additional Asset Objects to an existing Custom Field if the field contains a specific Object.

For simplicity:

Ticket Created with Custom Field "DOORs" populated with Object "Door 1".

I want Automation to update the field to be Door 1, Door2, Door 3 as well as any other objects that were already in the field.

I can see the field in the Edit automation component, but I'm not sure how to populate it with the additional objects. 

1 answer

0 votes
Kurt Anderson March 25, 2024

I'm looking for the same thing. I can set the field to one thing and overwrite an existing object but I can't figure out the syntax to add a computer field through advanced field editing. Something like this *should* work give that 'aMachine' is the returned asset object.

{
"fields": {
"customfield_10170": [{
"workspaceId": "{{aMachine.workspaceId}}",
"globalId": "{{aMachine.globalId}}",
"id": "{{aMachine.id}}"
}]
}
}

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