posted this on September 13, 2012 16:02
I would prefer to add a comment to a ticket after using our App.
Our app is used for purchasing a rewards card to send to ticket requesters.
I wish to persist purchase confirmation within the ticket.
I am writting the purchase confirmation within the ticket as follows:
var orderConfirmation = <Details>
Is there a way I can programmatically persist this.comment() without the user having to hit the "Submit" button within the ticket?
There sure is. You can use the HTTP tickets API via an AJAX call.
Thank you, I will give it a try,
Thanks for the providing the link to handling ticket comments using HTTP tickets API via an AJAX call.
However, it currently has known issues as mentioned within:
Is there another approach to adding & persisting comments within a ticket?
There is not, though using root-relative URLs currently works. Can you describe your use case for using fully-qualified URLs?
you should get some sleep sometimes :)
I am assuming this is a fully-qualified URL:
Please provide an example of a "root-relative URLs"
"Root-relative" means starting with a "/", which means it's relative to the domain. Thus, "/api/v2/tickets/5.json" is a shortcut for "https://jeff00tangocard.zendesk.com" if the current page is on somewhere in "https://jeff00tangocard.zendesk.com", e.g. "https://jeff00tangocard.zendesk.com/agent/".
Thx for the "Root-relative" info
I will give "/api/v2/tickets/5.json" a try.
Support Software by Zendesk