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

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
phalseid Offline
Member
 
phalseid's Avatar
 
Posts: 49
Join Date: Apr 2005
Location: Fort Collins, Colorado
search by ticket ID or string from your website - 07-03-2006, 04:29 PM

Often, owners of a company may want to look at a quality record (ticket) or do research without having to know the ins and outs of a program like this. To that end, i have two simple code samples that you can put on your company intranet page to facilitate searching:

Search by ticket ID
PHP Code:
<form name="tidform" action="http://YOURSUPPORTSUITEURL.HERE/staff/index.php" method="post" target=_new>

<
input name="ticketid" class="swifttext" id="tidsearch" type="text">
<
input name="_m" value="tickets" type="hidden">
<
input name="_a" value="search" type="hidden">
<
input name="type" value="ticketid" type="hidden">
<
br>
<
input type="submit" Value="search by quality record number">

</
form
and search by text in the subject

PHP Code:
<form name="swiftform" id="swiftform" action="http://YOURSUPPORTSUITEURL.HERE/staff/index.php" method="post" target=_new>

<
input name="searchrules[1][0]" value="subject" type=hidden>
<
input name="searchrules[1][1]" value="4" type=hidden>
<
input size="20" name="searchrules[1][2]" type="text">
<
input name="_m" value="tickets" type="hidden">
<
input name="_a" value="search" type="hidden">
<
input name="type" value="advanced" type="hidden">

<
br>
<
input name="submitbutton" value="Search Stamp Invoice Status" type="submit">

</
form
The value in
PHP Code:
<input name="searchrules[1][1]" value="4" type=hidden
tells it to search the subject. You can also search by other fields, but i have found that in supportsuite it doesn't find text in the body of a message with the advanced search. (!!!)

See the supportsuite wiki for more details

Peder
   
Reply With Quote
  (#2) Old
Varun Shoor Offline
Chief Executive Officer
 
Varun Shoor's Avatar
 
Posts: 2,828
Join Date: May 2003
13-03-2006, 03:07 PM

Thanks for posting, The 3.00.50 build is coming with saved searches which allows you to save your search rules and re-run them at will.

Regards,

Varun Shoor


Varun Shoor (varun.shoor ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Tags
search, string, ticket, website

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
Client Side Ticket Search and Filter Jemrada Developers & Code 84 10-07-2008 02:29 PM
How to Search in Ticket Text/Body? PeteV How do I? 4 15-08-2007 04:51 PM
Ticket View -> Quick Search: Is there a way to set the default criteria? richm How do I? 0 30-04-2007 02:22 PM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 09:53 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


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