Forums

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

Can automations be based on attribute update/change of an Asset?

Calvin
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 13, 2024

Hi all,

I want to create an automation that runs when an asset attribute boolean is set to true. I can't seem to find the attribute trigger, is "Object" updated/created/deleted the only ones available?

If I base it on "Object" Updated.

Then run an "If Object matches AQL" Where AQL = "ObjectType IN (xxx,yyy,zzz) AND boolAttribute = TRUE".

Would this be the same that I want to do with that single object, or is this going to run on ALL objects that fit the above AQL?

Cheers!

3 answers

1 accepted

6 votes
Answer accepted
Walter Buggenhout
Community Champion
October 13, 2024

Hi @Calvin,

If you use an Object updated trigger, the actions you specify thereafter in your rule would run on the object that triggered the rule. I am not sure why you would then want to add an additional JQL to run actions on other objects.

If you do want to act across multiple objects, you could do so by adding a branch to your rule and - in the given scenario - use an AQL branch to run on the objects returned by the search. This is, however, limited to maximum 50 assets (objects), as you can read in this support article.

Hope this helps!  

Calvin
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 13, 2024

Thanks Walter! I think I mispoke, I want to make sure my AQL doesn't accidentally run on every object by mistake. And it looks like it doesn't, it just runs on the one that was triggered which is great!

I guess that makes sense too, as I'd probably use a lookup object instead of an IF to get multiple and then branch that if I did need to go that route.

But indeed in this case mines much easier. Thanks so much for the link as well!

Like Walter Buggenhout likes this
3 votes
Joseph Chung Yin
Community Champion
October 13, 2024

@Calvin -

Excellent stated by @Walter Buggenhout

I am sure that you are already aware that Object related triggers are only available within Global Rules setup.

https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Object-trigger

Hope this also helps.

Best, Joseph Chung Yin

Calvin
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 14, 2024

Thanks mate! Yeah I made that mistake at the start for sure, when I couldn't find the AQL Branch. Appreciate the heads up :).

0 votes
Josh Schoenick
Contributor
December 19, 2024

But I see your correlation to Issue Field Updated, but for an Object right?

Do I don't need it to trigger on every object change, only if a single attribute changes.

For Example a Person Record has many attributes, but I only need this one automation to trigger if the "Department" attribute changes so that I can trigger a field on a Device to update to the same Department value.

If someone changes the Name of the person, this automation doesn't need to trigger.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events