Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Filtering object deleted events by object type

Tim Dean
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 28, 2023

Hello,

We are in the process of migrating from Assets for Data Center to Jira Service Management cloud. In our existing data center configuration, I have automations triggered by the creation, update, and deletion of Assets objects in a specific schema. In each case, I have an automation that looks like this:

WHEN object created (or updated, or deleted)
IF objecttype = software (the name of the asset object type is "software")
THEN Http Request
... 


When I tried to migrate these to Jira Cloud, I found that I could change the IF clause to something like "{{object.objectType}} Equals Software. See attached image for details.

 

Screenshot 2023-12-28 165327.png

This seems to work for the creation and update triggers, but the delete doesn't work. It doesn't seem like the object type property exists for the deletion event. The audit log message is "Error rendering smart-values when executing this rule:Failed to get value for object.objectType"


Is there any way to match what I had before, where I can trigger an HTTP call for object creation, update, AND deletion that applies only when the object type matches a specific value?

2 answers

0 votes
Guido Menardi
Contributor
June 21, 2024
0 votes
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2023

Hi @Tim Dean

Welcome to the community!

Instead of deleting an asset as a trigger, I recommend you use the status fields in the object that the asset has been removed/obsolete/inactive.  This way you will keep the history of the jsm tickets and relations to objects. 

So users in object set the new status to "inactive" and then you can run the automation with object updated based on the status.

I hope this helps. 

Tim Dean
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 2, 2024

Hello @Fabian Lim and thanks for the suggestion. Unfortunately, we need the ability to both update the status in some use cases and to delete in other use cases. I really need to be able to react to deletion events, and it appears that there is a regression in this functionality from what is available in Cloud vs. what was available in Server and Data Center.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events