Related ticket search button - here the complete script

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
trainyoucan
Posts: 8
Joined: Fri Apr 29, 2016 10:56 am

Related ticket search button - here the complete script

Post by trainyoucan »

Hi there.

Huge fan of HESK, lots of installation, fully licences.

I had this scripted developed by a freelancers a while ago, and constantly need to update this with the HESK updates. Hopefully this can be included with one of the future updates. :D :D Also hope I post everything. :mrgreen:

This will add a "related" ticket search option on the admin dashboard. Simply open any ticket and press the "related ticket icon" to search customers/ticket with similar ticket info. Very helpful if you want to do a quick search on related tickets of a client.

1. Dump the icon under /img (from the zip folder)
http://gogleweb.com/HESK/ico_search_yellow.zip

2. Add the lines below around lines 1075 (just above the "/* Lock ticket button */") in the file \admin\admin_ticket.php

//Find tickets from user icon.
if(!$reply) {
$description = htmlentities($hesklang['find_tickets_from_user']);
$ticket_email = htmlentities(urlencode($ticket['email']));
$options .= '<a href="find_tickets.php?q=' . $ticket_email . '&what=email"><img src="../img/ico_search_yellow.png" width="16" height="16" alt="' . $description . '" title="' . $description . '" ' . $style . '/></a>';
}

3. Update the file "find_tickets.php" under \admin
http://gogleweb.com/HESK/find_tickets.zip

Should do the trick.
EZ
Ezra Steenkamp
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: Related ticket search button - here the complete script

Post by bastiaan.c »

mmm. Can not download the zip files? :(
trainyoucan
Posts: 8
Joined: Fri Apr 29, 2016 10:56 am

Re: Related ticket search button - here the complete script

Post by trainyoucan »

Hi there.

Here we go with that zipfolder.

http://www.gogleweb.com/HESK/ico_search_yellow.zip

Can also use any other icon, just rename it to ico_search_yellow.png

EZ
Ezra Steenkamp
trainyoucan
Posts: 8
Joined: Fri Apr 29, 2016 10:56 am

Re: Related ticket search button - here the complete script

Post by trainyoucan »

Just to make sure I do not loose any scrip for folders again for the future. Here the full script again.

1. Dump the icon under /img (from the zip folder)
http://gogleweb.com/HESK/ico_search_yellow.zip
Alternatively upload any icon and save it as ico_search_yellow.png under the /img folder.

2. Add the code (just above the "/* Lock ticket button */") in the file \admin\admin_ticket.php

//Find tickets from user icon.
if(!$reply) {
$description = htmlentities($hesklang['find_tickets_from_user']);
$ticket_email = htmlentities(urlencode($ticket['email']));
$options .= '<a href="find_tickets.php?q=' . $ticket_email . '&what=email"><img src="../img/ico_search_yellow.png" width="16" height="16" alt="' . $description . '" title="' . $description . '" ' . $style . '/></a>';
}

That should do the trick.

This will add a small icon next to the "Lock" and "Print" icons when viewing a ticket. So open any ticket, then press this new icon that will display a list of all related tickets based on the name and email address of the original ticket.

EZ
Ezra Steenkamp
kaczorek912
Posts: 1
Joined: Wed Apr 05, 2017 9:16 am

Re: Related ticket search button - here the complete script

Post by kaczorek912 »

I Can't download zip attachment
Post Reply