The event API "ticket.propertiesUpdated" is not working in live production. But it is working in sandbox (that is virtual setup of live production).

Using th

The developed frontend custom App is working fine in customer’s sandbox . It behaves inconsistently when it is moved to customer’s production environment.

Using installed front end App , I tried to update the tickets. Sometimes the App is initiated, works fine and also shows all the logs which are I embedded in my code. Sometimes the App is not initiated and also not able to get any logs too.

Thanks,

Hi Priya,

Are you still facing this issue?
If you are still having this issue, could you share more details, what is the custom App Id and name and what error do you notice?

Thanks!

Hi,

Yes I am facing the issue still in production environment.

Custom App name is Auto- merge. The update event is not triggered in front end App whenever the custom field is updated. But it is working fine in Sandbox environment.

Here is the piece of code. Please have a look and find out the issue.

const headers = {
“Authorization”: “Basic <%= encode(iparam.fd_apiKey) %>”,
‘Content-Type’: ‘application/json’
};

$(document).ready( function() {
app.initialized()
.then(function(_client) {
window.client = _client;
console.log(“headers”,headers);
console.log(“options”,options);

 client.data.get("ticket").then (
    function(data) {

	  console.log("INSIDE UPDATE"); console.log(data);
     let content = data.ticket;
	 	console.log("content......",content);
		console.log("content.custom_fields.cf_test");console.log(content.custom_fields.cf_test);	 
    },
    function(error) {
  
	  console.log(error);
    }
  );

client.events.on("app.activated", onAppActivated);
 client.events.on("ticket.propertiesUpdated", eventCallback);

},
function(error) {
console.log(“error_____________”);
console.log(error);
});

// client.events.on(“app.activated”, onAppActivated);

function onAppActivated() {  
  console.log("App Activated________");    

}
var eventCallback = function (event) {
var event_data = event.helper.getData();
console.log(“INSIDE…propertiesUpdated”);
console.log(event_data);
event.helper.done();

};

});