Ticket field changed events for custom fields?

  • 8 February 2019
  • 0 replies
  • 7 views

 

Hi, is it possible to register callbacks for custom fields?

Ex:

var propertyChangeCallback = function (event)

// code to be executed when the priority of the ticket is changed.

{

var event_data = event.helper.getData();

console.log(event.type + " changed from " + event_data.old + " to " + event_data.new);

};

//client.events.on("ticket.priorityChanged", propertyChangeCallback);

client.events.on("ticket.customField.my_custom_field", propertyChangeCallback);



Thanks.


This topic has been closed for comments