Auto replies on resolved/close tickets

shalini44
Tera Expert

Hello,

I am looking to send auto-replies on email that either resolved or closed. I tried the solution discussed in the thread

Auto Reply Email for Closed and Resolved Incidents

However, the event discussed in the above thread is not sending the auto reply that I have set up.

gs.eventQueue("ticket.closed.autoreply", current, email.origemail, '');

The auto reply is set up as:

autoreply_1.PNG

Any suggestions, help would be greatly appreciated.

Thanks,

Shalini

1 ACCEPTED SOLUTION

That is interesting.   Mine worked set up that way.   Check your event log, make sure that parm 1 is actually capturing the email of the sender.   You may have to check send to event creator to have it work, though.


View solution in original post

18 REPLIES 18

Mike Allen
Mega Sage

There are three parts to this solution.   You have to have registered the event:



Capture.PNG



You have to have a business rule that fires the event:



Capture.PNG



And then you have to have your notification that you have shown.



To troubleshoot exactly what is happening, got to the event log and see if the event is firing when it is closed:



Capture.PNG



If all these things are in place, the event should fire and the email notification should be sent.


Thanks for replying Mike!


I have:


1.   Set up an event as:


br_auto.PNG


2.   I have the notification set up.


3. I have the script in the Inbound Action called - Update Ticket (BP), but do not have the Business rule as suggested in the previous post


     


    if( (current.state == "6") ||(current.state == "7")) {


          //auto-reply notification to caller


          gs.log("inside the else part in the inbound action");


              gs.eventQueue("ticket.closed.autoreply", current, email.origemail,'');


            current.comments('User replied to a Closed ticket. Auto-reply notification sent to the user');



I did not setup the businees rule as the othe post suggested to make changes in the inbound action. Do you think that is the reason? The above code is running in the inbound action and I thought the line gs.eventQueue will fire the ticket.closed.autoreply event.



I the event logs I can see that we are getting to this part of the code.


event.PNG


I wanted to add that I am also getting to the part of the code that addes the comment in the ticket that auto reply is sent.



Thanks for your help!
Shalini


And it is not coming into the event log?   I think the business rule has to be on ticket that fires the event.   Let me mess around with it a bit and I'll see if I can get something working.