Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
nunopsilva Offline
New Member
 
Posts: 20
Join Date: Jun 2008
How to "grab" ticket ID in reply text, automatically? - 20-04-2009, 03:33 PM

Hi,

I'm doing a survey so that whenever a ticket is closed, I have a predefined reply which will have the answer with a link for our survey website.
In first hand what I can do is to put this directly by hand. Every ticket I go there and

<a href=hxxp://surveyhost.blablabla/survey/index.htm?ticketID=acm-123456>Please fulfill our survey</a>

This is possible as I've tested correctly. But how will I be able to have this automatically for every ticket that is closed?

Anyone has ever done this? Is it possible?

Thanks,
Nuno Silva
   
Reply With Quote
  (#2) Old
ZystemsK Offline
Member
 
ZystemsK's Avatar
 
Posts: 167
Join Date: Dec 2008
Location: Maryland
20-04-2009, 06:32 PM

I think you can do this in the template. In the alert_ticketstatus, you can probably add this where it says:
Code:
<{$language[anewstatus]}><{$alertdata[newticketstatus]}>
<{$language[aoldstatus]}><{$alertdata[oldticketstatus]}>
Add:
Code:
<{if $alertdata[newticketstatus] == "Closed"}>
<{$language[arlink]}> <a href="http://surveyhost.blablabla/survey/index.htm?ticketID=<{$ticket[ticketid]}>">Survey!</a><BR></if>
That should, I think, only include the survey link when the ticket is closed. Also, I think this is only for staff alerts. We don't use the email functionality yet, so I have no way of testing this. If that's not the correct way, I'm sure it's close (if it's in a template).


Kayako Owned since 12/2008
Kayako Enthusiast since 12/2008
PHP/SQL coder and customizer, and up for ideas.
Got a large monitor? Try this mod on for size.
Interactive Tooltip/Popup for Client Information.

   
Reply With Quote
  (#3) Old
nunopsilva Offline
New Member
 
Posts: 20
Join Date: Jun 2008
21-04-2009, 04:55 PM

Hi,

Thank you for your great help.
Anyway, we've gone a bit further and got this:

<fieldset style="margin-bottom: 6px; color: #333333;FONT: 11px Verdana, Tahoma;PADDING:3px;">
<legend><{$language[ticketdetails]}></legend><BR>
<{$language[articketid]}><{$ticket[fticketid]}><BR>
<{$language[ardepartment]}><{$ticket[department]}><BR>
<{$language[arpriority]}><font color="<{$priority[frcolorcode]}>"><{$ticket[priority]}></font><BR>
<{$language[arstatus]}><font color="<{$status[statuscolor]}>"><{$ticket[status]}></font><BR>
<{if strncmp($ticket[status],"Closed",6) == 0 || $ticket[status] == "Pending to Close"}>
<a href="https://surveyhost/Survey/Inquiry.ht...Survey!</a><BR>
<{/if}>
</fieldset>

I decided to put this info here just in case any of you guys need to develop this thing too.

Thanks a lot!
   
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Reply mail - the link to the ticket is missing michael25 SupportSuite, eSupport and LiveResponse 2 20-01-2009 05:43 PM
3.30.02 STABLE Released Ryan Lederman News and Announcements 0 13-08-2008 09:47 PM
Mail parser -> Staff reply -> Automatically assign ticket to replying staff user arogers@schoolp Mail parser 2 08-08-2007 12:10 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78