Author Topic: A simple ticket search for SimpleDesk 2.0  (Read 7409 times)

Offline tfs

  • Quality Assurance
  • *
  • Posts: 1,541
    • View Profile
A simple ticket search for SimpleDesk 2.0
« on: September 06, 2011, 10:35:51 pm »
SimpleDesk is developing a full featured ticket search functionality that we plan to release in a future version.  But since that's still warming in the oven, and searching your trouble tickets can be a real need for a live help desk, I thought I'd release this simple little search utility that can tide you over for now.  It's not fancy in the least, but it works. 

Directions:

1) Download the attached file, simpledesk_search_basic.php
2) Place it in the root folder of your help desk forum.  It must be in the same folder as SSI.php.
3) Browse to the simpledesk_search_basic.php using your web browser.

If you improve upon this file please let us know and share it back with the community.  There's several things that would make it better.

* Search only open/closed/both tickets.
* Search for different strings in different fields, such as Poster="Smith" and Body contains "foobar."
* Date ranges.
* Search custom fields
* Your idea here!

If you'd like a menu option to search, you can of course place a link in a portal block, or if you want a menu button you can create your own or use a 3rd party mod to create a button that links to the simpledesk_search_basic.php file.  I used one called "6 Custom Buttons" version 0.5 and it worked nicely.  6 Custom Buttons v 0.5k only says it's compatible with SMF 2.0 RC3, but last night I installed it on my SimpleMachines Forum 2.0, SimpleDesk 2.0 site with no problems.  Now I have a search button.

A note on security.  Just like in SimpleDesk itself, simpledesk_search_basic.php will not work for guests.  And the results returned will only contain tickets to which the searching user has access.

And lastly, this search utility isn't an official SimpleDesk product.  It's merely little ole TFS having some fun.  So don't expect too much.   ;)

Enjoy!

TFS
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Offline howhowell

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: A simple ticket search for SimpleDesk 2.0
« Reply #1 on: November 30, 2011, 03:44:36 pm »
Thanks, TFS!!
« Last Edit: November 30, 2011, 04:12:20 pm by howhowell »

Offline tfs

  • Quality Assurance
  • *
  • Posts: 1,541
    • View Profile
Re: A simple ticket search for SimpleDesk 2.0
« Reply #2 on: November 30, 2011, 05:25:27 pm »
You're welcome.  Funny that this search just saved my bacon about 10 minutes ago when our accountant read me the riot act because I had 4 billable hours on my timesheet that she couldn't find in a trouble ticket.  I knew that the issue was about a client who had accidentally uninstalled our software from their network server while everyone was logged in, and so I searched for "uninstalled" and found the ticket immediately.  Because it was such an emergency situation I neglected to enter it onto a ticket the day that it happened.  I had made the entries in the ticket a week later when I sent in my timesheet, which is why she couldn't find them.
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Offline Tah Zonemaster

  • Beta Tester
  • *
  • Posts: 47
    • View Profile
Re: A simple ticket search for SimpleDesk 2.0
« Reply #3 on: December 07, 2011, 11:05:15 am »
Nice work :)

Offline TexMax007

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: A simple ticket search for SimpleDesk 2.0
« Reply #4 on: December 07, 2011, 04:31:30 pm »
What time-line can we expect for the full-blown search feature?

Offline venguard223

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: A simple ticket search for SimpleDesk 2.0
« Reply #5 on: December 07, 2011, 08:07:28 pm »
given that the guy who wrote most of simpledesk left and that dev activity here is a bit sporadic it might be a while

judging by the commit comments it doesnt even work properly anyway