#32210 – Get category information

Posted in ‘Akeeba Ticket System’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Saturday, 04 January 2020 06:37 CST
maka45
Hi

How can i get (read) this informations in akeeba ticket system from a specific category that i can do a category overview by myself?

-Count of Tickets (public) and Count of messages in tickets (public)
-title of latet ticket (including the date and name of user)

Best wishes
Mario

Custom Fields

Joomla! version (in x.y.z format) 3.9.14
PHP version (in x.y.z format) 7.4
Akeeba Ticket System version (x.y.z format) 3.1.0
Monday, 06 January 2020 00:16 CST
nicholas
All tickets are in the #__ats_tickets table. All posts are in the #__ats_posts table. You can write your own SQL query to fetch the aggregate information you want. Please note that aggregate queries are slow – and please don't do a join, this makes things far far far far worse.

Regarding the latest ticket, first query #__ats_tickets table to get the information you want. Then query the #__ats_posts table for all ecords with the same ats_ticket_id and choose the one with the lowers ats_ticket_id to find the first post. The user_id is the Joomla user ID. You can pull up its record through JFactory to display the username.


Nicholas K. Dionysopoulos

Lead Developer and Director



🇬🇷Greek: native

🇬🇧English: excellent

🇫🇷French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



Wednesday, 05 February 2020 17:17 CST
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!