Forums

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

Get Assets object type through smart value

Aleksandra Leesment
Contributor
October 26, 2023

Hello, I would like to extract object type through automation. Currently, I am using Object updated trigger through Global automation. 

Screenshot 2023-10-26 at 10.27.58.png

This trigger doesn't let using AQL, so I have to get the objectType/category of the object retrieved and use Advanced compare condition to filter out the needed objects. Unless you can suggest simpler ways to do it. I can access the object with smart value {{object}}, however, I can't seem to get the objectType attribute. I couldn't find information about it in the documentation. Thank you for your help in advance!

1 answer

1 accepted

3 votes
Answer accepted
Elyes Gannoun [Elements]
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.
October 26, 2023

Hello @Aleksandra Leesment ,

According to this documentation, it seems that you can access the object's attribute through this syntax: {{object.(attribute name)}}

Can you try this and let us know?

Aleksandra Leesment
Contributor
October 26, 2023

Managed to get the category by using {{object.objectType}}.

Like Anatoli Hadukhin likes this
Josh Schoenick
Contributor
February 16, 2024

I was attempting to do this for a reference to another object.

I have 8 objectTypes that are different categories of hardware devices like: Computer, Display, Printer, Networking, etc.

They each have an attribute of Type that references a Type objectType in my schema. That Type objectType has a Category attribute that has options matching the 8 different hardware object types.

Type objectType is used as a sub-category field, for example, the category Display is assigned to Monitor, Projector, TV.

Long story short, from the Display objectType I was able limit the Type options based on the ObjectType using the Filter with AQL feature within that attribute configuration with
"Category" = ${objectType}

 

Like Aleksandra Leesment 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