Support

Akeeba Ticket System

#41933 Search / Filter custom fields

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5.3.1
PHP version
n/a
Akeeba Ticket System version
5.3.1.1

Latest post by nicholas on Thursday, 22 May 2025 10:08 CDT

[email protected]

Hi,

I have added custom fields to the ticket system and set the smart search options to Make Searchable and add as Taxonomy. (and re-indexed the smart search component)
But when i use the smart search, i don't see the taxonomy and the fields doesn't seem to be searched.

In this example i would like to filter the tickets based on a custom fields value (in the frontend). We have Machines, modules and software.

Maybe i'm missing something, but is this possible?

Thanks in advance

nicholas
Akeeba Staff
Manager

We had not added support for this Joomla feature (yet) due to two concerns.

First, it was unclear if there is a practical use case for it in the context of the ticket system.

Second, we couldn't use Joomla's helper. We have to index the posts, not the tickets, but the custom fields are defined on the tickets themselves. This means that the standard way of using the provided core helper (Helper::addCustomFields($item, 'com_ats.post');) would not work because there are no custom fields defined in the post being indexed. That helper also has some other problems which made it unfit for our purpose. Either way, we'd have to write our own code for it, and keep it up to date with Joomla.

Writing custom code that needs maintenance for a use case nobody had asked for is generally a bad idea, that's why we opted not to support it.

However, you provided a compelling use case. I wrote the custom code. You can install this dev release and re-index your tickets. You should now see the custom taxonomies in the Advanced Search section of Smart Search. The separate taxonomies per field mean that you have a new drop-down for each of your custom fields you chose to add as a taxonomy. Please let me know how that worked out.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!