Same here, I want on the Search Results to add the Column STATE (For all the agents on the systems) to take a quick view on the OPEN TICKETS.
Change columns search results
+1. The generic search results are less useful if we're specifically looking for a ticket in a specific state (ie. not closed).
I have the same problem with 1.12. (Should I open a new thread in that section?) Even for a "basic" search, I should be able to define the default columns. I rely on some fields for at-a-glance ticket information, so it's pretty disappointing to lose that information during searches.
Hi, I have the same problem. Is there a solution already?
+1
Same problem.
How to do it for for all employees?
- Edited
+1 Same problem!
OSticket version 1.15.2.
It will be possible in the next version? Are there any changes to make in the core files to obtain this result?
Edit:
I added these lines to class.queue.php in the include folder and I gained what I was looking for!
https://github.com/sawtooth7/OSTicket1.15.2-customColumns/blob/main/class.queue.php#L739-L745
(I'm really newbie at GitHub )
- Edited
I see that you added
// Use the columns of the "Open" queue as a default template
if ($use_template && ($template = CustomQueue::lookup(1)))
return $template->getColumns();
To the code, but when I tried it I get the same, default search columns. I tried putting that snippet at the very start of the function (under function getColumns($use_template=false) {) to try to force it to return the results as early as possible, but no results. I tried just a return of $template->getColumns();, but that just resulted in an error breaking the page.
I'm also currently running version 1.15.2. Any help would be really appreciated.
Edit: I've also gone through the standard columns portion a few lines down. I added a required field under Contact Information called "practices." I tried calling it using various versions of "primary" => 'cdata__practices', as well as user_practices, and just about everything else I could think of.
Thanks so much!
Also chiming in here, this is really needed.
We use the traditional, hard-coded columns for Advanced Search. As I mentioned above (in 2019) if you want to have Custom Columns, simply save the Advanced Search and you will be able to edit the Columns tab on Queue edit. Otherwise the code is open source and you can customize it to your liking.
Cheers.
Hello, just wondering if there has been any progress made on the front since the last comment.
KevinTheJedi There is indeed progress to be made. GiantTinyMidget explained in considerable detail on Mar 28, 2019, (above) why saving the search is not a practical solution. It would be like searching for "muffler bracket" in Google and then saving a bookmark for https://www.google.com/search?q=muffer+bracket in your browser. What good would that bookmark be if later you wanted to search for "alternator"?
I realize that osTicket is open source, and users are not entitled to anything, but this is a fairly straightforward request that a lot of people have been hoping for. I'm going to attempt to edit the code as sawtooth suggested above. I'll report back on my level of success.
- Edited
Please, go for it. However, this will not be changing anytime soon (especially not with current legacy codebase).
Also, make sure you Fork osTicket on GitHub and provide your mod there (in your own fork) as a branch so you can track issues within your own repo and doesn't cloud our repo.
Cheers.
OK, I can confirm that adding the code that sawtooth linked above ( https://github.com/sawtooth7/OSTicket1.15.2-customColumns/blob/main/class.queue.php#L739-L745 ) to version 1.18 does add the Status column to the Advanced Search results. It goes at line 744 of the file in version 1.18.
Thank you, sawtooth.