/build/static/layout/Breadcrumb_cap_w.png

All Ticket Queues Category for Reporting

Hello. If I have multiple Ticket Queues (referred to Category in Reporting), how can I run a report to include all Ticket Queues or only selected ones? Currently the Category only allows me to select one. Thanks.


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: Nico_K 1 year ago
Red Belt
0

you can, but not via wizard. You can create a report with the wizard and need to change it later as SQL.

Posted by: Hobbsy 1 year ago
Red Belt
0

Top Answer

So to give you a bit more detail than the last “helpful” response….

create the report, set it up with a single queue, then save the report.

Next take a copy of the report and choose to view the SQL.

in the WHERE statement you should find something like 

HD_TICKET.HD_QUEUE_ID = X

that is the line that restricts the report to a single Queue, remove it from the report and you can save it. It will then run on every queue.


Comments:
  • Hi Hobbsy, great idea! I followed your instructions, but my report doesn't include the QUEUE_ID :(

    However, if I get the QUEUE_ID number for all the queues I will try adding all of them using the statement SELECT HD_TICKET.HD_QUEUE_ID = X (I'll have to research how to add multiple queue IDs. I tried adding SELECT HD_TICKET.HD_QUEUE_ID = '*' to the following but then got error "mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT HD_TICKET.ID, HD_TICKET.TIME_CLOSED FROM HD_TICKET WHERE ((HD_TICKET.T...' at line 2] in EXECUTE(\n"SELECT HD_TICKET.HD_QUEUE_ID = '*'\nSELECT HD_TICKET.ID, HD_TICKET.TIME_CLOSED FROM HD_TICKET WHERE ((HD_TICKET.TIME_CLOSED > '2022-12-05 00:00:01') AND (HD_TICKET.TIME_CLOSED < '2023-12-05 23:54:52')) ORDER BY ID LIMIT 0""

    SELECT HD_TICKET.ID, HD_TICKET.TIME_CLOSED FROM HD_TICKET WHERE ((HD_TICKET.TIME_CLOSED > '2022-12-05 00:00:01') AND (HD_TICKET.TIME_CLOSED < '2023-12-05 23:54:52')) ORDER BY ID

    Thanks so much for your help, I appreciate it. - PSMT LLopez 1 year ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ