Recent searches
No recent searches
Split a request into a new ticket
Posted Mar 10, 2020
Often, a requester will request something within an existing ticket. I cobbled something together that allows you to create a new ticket and copy CCs/followers. Be warned, this isn't trivial and you're going outside the realm of what Zendesk considers best practice.
You're going to create a ticket via the API and trigger this by notifying an external target. So, to start, create an external HTTP target. For the URL, use https://YOURDOMAIN.zendesk.com/api/v2/tickets.json but replace YOURDOMAIN with your actual domain. Method is POST. Content type is JSON. Enable basic authentication and put in valid credentials.
Now, you need to build your user interface. I used ticket fields with conditions.
Drop all of those on your form(s). I set a condition to hide all of the fields when Split Ticket? is unchecked. I also require Subject and Description. Note that if you don't have conditional fields, requiring those fields might be problematic. If you leave them as optional you MUST fill out the description otherwise ticket creation will fail.
Next, create your trigger. These are the conditions I set:
And these are the actions:
Note you want the target to be your ticket creation target. The JSON/Liquid is kind of complex, so here is what I wrote. Note: you MUST change the ticket field ID number (the 360036041113 in {{ticket.ticket_field_360036041113}} to match the ID numbers of your unique fields. Sorry, it's horrible to read. I would suggest pasting it into your favorite text editor to help.
Anyway, that's working for us now. Let me know if you have questions.
0
11 comments
Brett Bowser
Thanks for sharing this Kevin!
0
Quetzal
I would LOVE to see a simpler way to do this. I have clients respond to the same ticket with new questions over and over and over. It makes tracking their questions very challenging. I love that I can merge tickets, but sometimes I just want to split out a ticket.
0
Kevin Ford
@... I've actually stopped using my solution above. Now that Zendesk has rolled out side conversation tickets, it's actually a much better solution. It's not perfect for this use case, but it's definitely an improvement.
0
Naomi Watnick
hi @... - for Side Conversation Tickets, this doesn't allow us to have the requester be the requester again, correct?
Thanks!
~Naomi
0
Kevin Ford
@... yes, but you have to manually set the requester to the appropriate person.
0
Naomi Watnick
Thanks @... - And we still don't have a way to inherit all the same selected values from the original ticket, though, right?
0
Kevin Ford
@... there is a way using the API but it's not built into Zendesk.
0
Naomi Watnick
Thanks, @... - That's great! I can do something with that and I'll put it in our backlog.
0
Craig Robichaud
Great work here, @...! I just wish it wouldn't take such a herculean effort just to have what every other platform considers basic functionality.
0
Simon Woodside
But Side Conversation Tickets aren't for communicating with customers are they? They are for internal communication.
0
Craig Robichaud
Good point, @.... Right now, we do most customer comms through ZD because we want everything documented on one platform, linked to the ticket interaction, etc. but recently, when I can find a the unique email address for a specific ticket, I will send the email from Outlook and just add that address to the CC; the email goes to the ticket and so does the customer's reply.
If there was an easy way for us to capture the email address that is unique to our tickets, that would solve all of my personal frustrations with trying to do emails from a place that should just be for ticket notes-- Anyone know if that information is readily available in some ticket properties section somewhere?
0