Skip to main content
Closed for Voting

Go back to list of tickets after submitting a response

Related products:Freshdesk
  • August 22, 2017
  • 1 reply
  • 12 views

From a workflow perspective, we review a ticket and when we are done with a response and hit submit (or update the status of a ticket) we always go back to the list of tickets to pick up another off the queue. It would be useful to have an option to automatically be sent back to the ticket queue after hitting the submit or update button.

1 reply

If you reply and select "Send and set as ..." ( not plain "Send" ) this freshplug will redirect you to the tickets list:
<div id="redirect_to_ticket_list_page"></div>
<script type="text/javascript">
  jQuery('#redirect_to_ticket_list_page').closest('.widget').removeClass('widget');
  jQuery(document).on('ticket_fields_updated', function(ev, data) {
    if (data.hasOwnProperty('helpdesk_ticket[status]')) {
      if ((jQuery('#HelpdeskReply').is(":hidden")) && (jQuery('.cnt-note').is(":hidden")) && (jQuery('.cnt-fwd').is(":hidden"))) {
        document.location.href = "/helpdesk/tickets";
      }
    }
  });
</script>

 Based on code from https://support.freshdesk.com/support/discussions/topics/297069