Hi,
I'm fairly new at all this and trying to make a simple custom app to add a "resolve" button to the top navigation - IE when they click the button the "status" value of the ticket is changed to "4" (resolved).
After a lot of digging around I've figured out how to get the status of the ticket, but I'm still a little lost as to how I go about setting it to a different value. Can anyone shed some light?
This is the code I've got in my app.js so far:
$(document).ready( function() { app.initialized() .then(function(_client) { var client = _client; client.events.on('app.activated', function() { client.data.get('ticket') .then(function(data) { console.log(data.ticket.status); }) console.log("clicked"); }); }); });