Forums/Community/Community tips & tricks

Calling a URL Target for new comments on a ticket

Dave Trindall
posted this on June 22, 2011 15:17

In a sample application I just created to test out the URL Target extension type, I noticed my target is only called when new tickets are created, not when comments are added to the ticket. This means my sample application only has a record of the first comment for every ticket created.

How can I synchronize ticket comments with my sample application? From here it looks like I can either poll open tickets on a schedule using the API, or create a JIRA target instead, mimicking whatever JIRA specific responses Zendesk is expecting from a JIRA instance.

A great solution would be a URL Target that gets call whenever there is activity on a ticket, so I can pull it using the API to find out exactly what changed.

 

Comments

User photo
Jake Holman
Product Manager

Dave, are you firing the Target against a Trigger looking only for ticket creation? Targets are controlled by Triggers. 

June 22, 2011 15:36
User photo
Dave Trindall
chorusindex

I didn't know there was an option to associate any kind of trigger rules against the target. I created the target by going to Settings > Extensions > Targets, without any mention of triggers.

June 22, 2011 19:11
User photo
Dave Trindall
chorusindex

Jake, I take it all back. I should be able to achieve what I want by creating a trigger that gets fired when a Ticket is 'updated' instead of 'created'. Thanks for your help.

June 22, 2011 19:16
Topic is closed for comments