Forums

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

Automation of edit field from asset value

steven.allcock
Contributor
September 19, 2023

I am trying to update an approval group by automation to edit the issue and update the value with a value in an asset but when i run the automation its pulling the approval groups for all objects in the object type.

Im sure its something simple in lookup query but I cant figure it out

Anyone got any ideas what im doing wrong here?Pasted Graphic 1.pngPasted Graphic.pngPasted Graphic 2.png

1 answer

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Champion
September 19, 2023

It is because your lookup object AQL is too broad. You are pulling all objects in the object type, not just a single object. You would need to include an unique identifier for the object you want, which I guess in this case is the TIA Profile ID. So if you change the AQL to something like this it should work:

objectType = "TIA Profiles" AND key = {{issue.TIA Profile ID}}

steven.allcock
Contributor
September 19, 2023

Thank you, that's it.

I appreciate your help on that one, still new to assets :-) 

Like Mikael Sandberg 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