rcmaples / shftr

0 stars 0 forks source link

Zendesk triggers can fire webhook multiple times #3

Open rcmaples opened 3 years ago

rcmaples commented 3 years ago

As seen here: image Some triggers can cause the shftr webhook in Zendesk to fire multiple times.

This is what it looks like in shftr: image


One proposed solution is to add the sent_to_shftr tag when the trigger fires off the webhook. Then use another trigger to remove the tag once the ticket is reassigned. Alternatively, we can remove this tag via API in the call to assign the ticket. Updating the ticket properties here should let us alter the tags at the same time we assign it. https://github.com/rcmaples/shftr/blob/d9da3f5bafdd3378f1c55702180bd2b0c8fc9d6a/utils/ticketAssignment.js#L82-L86

Thanks to @1etoy to finding this one!