Jump to content

What does the Filter / Search tickets actually do?


Serenade

Recommended Posts

It claims to search both Subject/Message, however it's happened several times where I enter something in the search field I know for a fact was typed in word for word in several emails, but the search ends up finding no results whatsoever.

 

A prime example is I use a canned reply roughly 2 times a week: "Sure thing, your subscription has been cancelled." Searching for that exact sentence brings up nothing. Searching for "subscription" brings up nothing either.

 

I've also made sure the ticket status while searching is set to "Any" but it still doesn't work. What's the deal?

Link to comment
Share on other sites

Hi,

At present it searches the ticket subject and the contents of the first message in the ticket.

 

I don't see the searching the contents of the first message in the ticket working, are there any more rules for it?

Link to comment
Share on other sites

Brian!! can you please enlighten us?

only if someone enlightens me first! :lol:

 

if John says that it's only searching the subject and/or first message of a ticket, then that sounds as though the SQL query is only searching the tbltickets database table - if you wanted a more thorough search, you'd need to query both tbltickets and tblticketreplies tables for your search term.

 

i've attached a report below, which is a quick modification of the Services report, that you can use to search for support ticket replies only - so the existing search will search the subject/1st message, this report will search subsequent replies only - from either the client or support.

 

 

J0WF6Xf.png

 

you can only filter on fields within the tblticketreplies table with this report... so that's 'Reply ID', 'Admin Name', 'Message' and 'Date'.

 

you may want to ensure that the Reply ID checkbox is always ticked when filtering as the values of this field have a clickable link to the appropriate support ticket page for you to view the ticket in question... the Client Name field will display the name if the reply is from the client, otherwise it will be a reply by an admin/support staff etc.

 

to install, just upload it to /modules/report/ and it should become available from the reports page in the Admin Area.

 

if I was doing this properly for a client, it would query multiple tables to search all messages and then you could filter on all the multiple fields, but i'm just doing this quickly to fill a gap in the existing search... let's see if WHMCS expand the search option in a future release... otherwise, i'll revisit this when I have more time. :idea:

 

Download - brians_ticket_search.zip

 

note: you may need at least 5 forum posts before you can download the report.

Link to comment
Share on other sites

it certainly works on the WHMCS Demo page. :idea:

 

log into the admin demo and go to supporttickets.php - http://demo.whmcs.com/admin/supporttickets.php

 

then either search in the sidebar or click the search/filter tab and enter a term into the subject/message field...

 

 

P586c2A.png

 

weirdly, there was a support ticket in there over a year ago from someone about their server being under attack from daleks - and the search filter finds it. :)

 

you're not trying the search box in the top-right corner of the page are you ? :?:

Link to comment
Share on other sites

you're not trying the search box in the top-right corner of the page are you ?

 

Yes I was, and I think top right search box should also search for first message/ reply of the ticket.

 

I guess this will go into years long of feature request section now!

Link to comment
Share on other sites

  • 4 years later...
  • 1 year later...

I'm surprised Support's Filter still doesn't search in ticket replies/notes but only checks the first response of each ticket. How everyone deals with this, any workarounds?

Brian's Ticket Replies Search looks a really nice modification, does it still work at WHMCS 8.5.x?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated