Greetings everyone,I've created a custom ticket status "Ongoing" and I'm showing it as a submenu for agents. The problem is that I can't count the number of tickets of that specific status ("ongoing") to show on the right side of the submenu. I can get the number of tickets of the default stats such as "open", "answered", "assigned" and "overdue". I've noticed that in advanced search there are three functions that accomplished what I'm looking for in:    $tickets = TicketModel:();    $tickets = $search->mangleQuerySet($tickets, $form);    $count = $tickets->count();But what should I pass to the mangleQuerySet method ? Is there another way to make this possible ? Thanks.

Write a Reply...