Forums

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

Assets - Creating If/Then Attribute relationships

Eric Templeton July 14, 2025

We have a need to create an if/then relationship between attributes within Assets. 

Use case #1 - IF "Assigned To" attribute is populated THEN State Attribute = "In Use".

Use case #2 - IF State Attribute ="In Stock" THEN "Assigned To" must be empty.

 

1 answer

3 votes
Jeroen Poismans
Community Champion
July 14, 2025

Hi Eric,

At the moment there is no automation trigger on an Attribute change. There is however one on the Object Updated. In order for this to work, base your case on 1 attribute: The Assigned to or the State. Both is going to produce irregular results since you can't be sure (with the Object Updated trigger) which attribute was altered.

Here is an automation rule:

  • Trigger: Object Updated
    • Condition AQL: ObjectType = <your objecttype)
  • If Assigned To is empty => set State In Stock
  • If Assigned To is not empty => set State In Use

If you really want it the way described, the way to go would be doing a WebRequest in your automation to get the asset history, parse it in your automation to find out which field changed and to what, then build your IF/ELSE logic there. This would be the endpoint to use:

https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-id-history-get

Hope this gets you on your way!

Eric Templeton July 15, 2025

Thanks for the reply! This sounds like it could work for us. I'll circle aback and let you know!

Suggest an answer

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

Atlassian Community Events