Event for new / updated / closed tickets
Hello,
I was searching around but could not find a good start.
My intention is to create an app that sends an HTTP request to our alerting service when a ticket is created (or updated, or closed).
I tries this one:
var client = ZAFClient.init();
client.on('ticket.save', function(data) {
sendAlert(data);
return true;
});
However, this never gets called.
When I use this instead, it works.
client.on('*.changed', function(data) {
sendAlert(data);
});
But it is only called when I change certain fields and not when I create a new ticket for example.
Is there some sample code for achieving the above? Or, can you point me in the right direction.
Thanks a lot
Ron
