How to edit automation with assets

Wayne Yang August 1, 2024

I want to get the data Attributes from assets, how do I write them in automation?

ex.  Display name = neo.chenSCR-20240801-oztw.png

2 answers

0 votes
Boris Zozoulia
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2024

hey @Wayne Yang 

if u want to access Assets via automation while running automation against issue scope, you can use the dot notation like below

Create variable

Variable name: supportGroup

Smart value:

{{issue.Configuration item.first.Support group.Jira group}}

 

We have a custom field of a type assets in the issue above, named Configuration item.

Referencing this field from issue scope, will give you the value of asset object reference, which you can dot notation style drill down to the value you are after.

 

In my example our custom field accepts multiple asset objects in it. Example shows how to get the value of the first one, then look into its "Support group" attribute, which happens to be an object reference to some other asset. That other asset object reference contains an attribute called "Jira group"

 

And so on and so forth.

Hope that helps

0 votes
YY Brother
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 1, 2024

Hi @Wayne Yang 

Welcome to our community.

There's a tip to query your result through Basic search and then switch to Advanced AQL. You will get what you want.image.png

Hope it helps,

Thanks,

YY哥,填空题咨询

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