When I tested the sample app in the dev mode, the timer is added but the flow enters into the catch method and it returns undefined.
client.interface.trigger("start", {id: "timer", value: {agent: 8004638272, billable: true, note: "Sample note"}}).then(function(data) {
console.log(data)
}).catch(function(error) {
console.log(error) // returns undefined
});
And also the timer update event returns invalid values
let updateCallback = function (event) {
console.log(event.type + " event occurred");
let data = event.helper.getData()
console.log(data.time_entry.timespent) // returns invalid values
};
client.events.on("ticket.updateTimer", updateCallback);
Any suggestions or am I missing something?