Notify webhook for new ticket comments
I'm trying to setup a webhook to get notified on all new comments for a Ticket. I'd like to have the id, comment, and comment author to be sent via JSON to my webhook. Right now I have it somewhat working with the following body:
But unfortunately something like this doesn't work:
I believe the reason this isn't working for you is that ticket.comment.body and ticket.comment.author_id are not available placeholder properties.
If you would like the ID, Comment and Comment Author for the most recent comment I would recommend trying this in your trigger:
This article has a full list of placeholder properties available for future reference
Hope this helps!
I don't suppose when the webhook triggers, there's a way to see which fields on my Ticket have changed?
At this stage this is not something that can be easily supported out of the box, however we are exploring being able invoke webhooks based on events occurring in your Zendesk account (such as a ticket field being updated). The only thing that I can suggest is that you include the fields you are interested in, in your payload and do the comparison on your server side with the values from previous ticket updates.
I have a related problem.
Based on the context of this ticket, I assume it's possible to set up a webhook to get notified of every comment of every ticket.
However, I don't see anything in the documentation for how to do that. Can anyone link to the appropriate resource please? I'm really stuck here.
Por favor, entrar para comentar.