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.
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:
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!
Thanks for the reply! This sounds like it could work for us. I'll circle aback and let you know!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.