Jump to content

Ticket Merge Auto Reply Feature?


Recommended Posts

I don't know of a setting or a way to do this but, maybe someone has done this or knows of a way.  We get a LOT of customers who never read the headings in our emails discussing tickets, replies and avoiding duplicate ticket numbers. 

Any to the question..

Anyone of a way that when you merge two tickets that a templated email could be sent or some other way to auto-repond when two tickets are merged by the admin. We seem to have to use the pre-defined replies a lot for this and this one feature could remove a headache.

Link to comment
Share on other sites

19 minutes ago, webjive said:

I added this as a feature request but, I know it could be years or never for an API to get added 😉

it might be worth posting a link to that feature request, because they can be notoriously difficult to find, which can lead others in a similar intention to create a new request - each of them then only getting one or two votes (pointless) and subsequently being declined by WHMCS for "lack of interest".

Link to comment
Share on other sites

2 minutes ago, webjive said:

Here's the link. Its still under moderation so, give it a few days 😉

what's a few days in moderation, if you're going to wait years for it to be completed lol 😉

just a thought, but possibly TicketClose could be another avenue to explore because when two tickets are merged, one of them is closed... so at that point, the TicketClose hook point should be triggered... if it's been closed due to a merger, then the ID of the other ticket should have been added to the merge_ticket_id field in the tbltickets table... that ID could then be used to get the ticketid for the AddTicketReply API to send a reply to the newly merged thread.

Link to comment
Share on other sites

 
 
 
2 hours ago, webjive said:

Great thinking and yes, it would create a looping reply when you checked for [merged] in the subject.  

Trick: in the hook you need:

1 - remove the "[merge]" from the object

2 - send the answer to the user

Doing so, your merged ticket will no have [merged] tag anymore, but you'll not have any loop... and your hook will work even if the user sends two or more messages to be manually merged.

Link to comment
Share on other sites

  • 1 year later...

It can be done via AfterCronJob (the one that runs every X minutes). Ticket merge leaves a trace in tblactivitylog. You can use that to trigger your "add reply" automatically via API. You can take as example this hook. I used this approach to send an email on "ticket close via escalation rule" (there was no hook point to detect this particular event).

Edited by Kian
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated