Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
sdesort Offline
New Member
 
Posts: 7
Join Date: Feb 2004
Including ticket history in auto close emails - 03-07-2007, 04:04 AM

I am running 3.10.02 stable.

I would like to include the ticket history in the auto-close emails. Customers often forget what the details of their ticket were about, even though they do see the ticket subject in the auto-close email. So I would like to include the complete ticket history.

I have looked at the template email_staffreply, which does currently send the entire ticket thread in staff replies. I found this code:

Code:
<{$language[tickethistory]}>
===================
<{foreach key=key value=post from=$postlist}>
<{if $post[ticketpostid] != $ticket[lastpostid]}>
<{$post[fullname]}> (<{if $post[creator] == "staff"}><{$language[thstaff]}><{elseif $post[creator] == "thirdparty"}><{$language[ththirdparty]}><{elseif $post[creator] == "recipient"}><{$language[threcipient]}><{else}><{$language[thclient]}><{/if}>) <{$language[thpostedon]}> <{$post[date]}>

===============================================================
<{$post[contentstext]}>

<{if $ticket[hasattachments] == "1" && $post[attachmentcount] > 0}>
<{foreach key=attachkey value=attachment from=$post[attachments]}>
<{$attachment[filename]}> (<{$attachment[attachmentsize]}>)
<{/foreach}>
<{/if}>

<{/if}>
<{/foreach}>
Is this the correct code to insert in the template email_autoclose?

Thanks,

Scot
   
Reply With Quote
  (#2) Old
bmartindcs Offline
New Member
 
Posts: 22
Join Date: Oct 2007
12-11-2007, 09:56 PM

Bump
   
Reply With Quote
  (#3) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,956
Join Date: Aug 2006
Location: Mumbai, India
12-11-2007, 10:09 PM

That is the precise code but I do not think it may work as email templates are configured to accept certain codes in certain templates. Yet give it a try, it may work.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#4) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 197
Join Date: Oct 2007
Location: Jakarta, Indonesia
27-09-2008, 03:07 PM

I sure would like to be able to do this. I also tried the $postlist variable, but it doesn't seem to work.

Scot, did you ever find a solution for this?


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#5) Old
netaddict Offline
Member
 
Posts: 95
Join Date: Mar 2008
Location: Adelaide, Australia
28-09-2008, 09:27 AM

Maybe this should be a feature request for Version 4?
   
Reply With Quote
  (#6) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 197
Join Date: Oct 2007
Location: Jakarta, Indonesia
13-10-2008, 03:56 PM

If I'm not mistaken, this will get the $postlist variable into the autoclose templates.

In \modules\tickets\cron_autoclose.php, locate the following code around line 107:

PHP Code:
$template->loadLanguageSection("ticketemails"TEMPLATE_DB);
$_ticketobj->loadTemplateVariables(); 
Insert right after it:

PHP Code:
            // Mod to assign $postlist to auto-close (matthew@xentana.com)
            
if ($_SWIFT["settings"]["t_postlist"] == || $_SWIFT["settings"]["t_enhistory"] == 1)
            {
                require_once (
"./modules/tickets/functions_ticketmain.php");
                
$postObj = new TicketMain($val["ticketid"], falseLOG_SYSTEM);
                
$template->assign("postlist"$postObj->getTicketPosts(falsefalse$_SWIFT["settings"]["t_postorder"], truetrue));
            }
            
// End Mod 
Completely untested at the moment.


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4

Last edited by Matthew; 22-10-2008 at 02:45 PM.. Reason: Fixed some stupid errors; tested... works!
   
Reply With Quote
  (#7) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 197
Join Date: Oct 2007
Location: Jakarta, Indonesia
Post 22-10-2008, 02:48 PM

I did test this, corrected a few errors and updated the original post.

It works!


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
Reply

Tags
close, history, ticket

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Create links in ticket emails that auto login and go to the ticket khoffman Modifications & Addon Releases 42 29-11-2008 12:54 AM
Ticket Response Emails - Including whole coversation thread sd123 SupportSuite, eSupport and LiveResponse 8 28-05-2007 10:08 AM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48