[rt-users] Perl API: list of available queues, owners, status

Ruslan Zakirov ruz at bestpractical.com
Thu Jul 12 14:30:15 EDT 2012


On Thu, Jul 12, 2012 at 7:58 PM, Richard McMahon <rgm at ast.cam.ac.uk> wrote:
> Hello,
>
> Is there a way/example of how to get a list of queues, owners, status using
> the Perl API?
>
> I want to cycle through making a list counts for each owner
> and queue by status.

You want count tickets groupped by queue, owner and status, right? You
really don't want to iterate over anything. It will be very slow.
Instead take a look at how QueueSummaryBy* files do it in RT 4.0 and
how RT::Extension::SummaryByUser (on CPAN) does similar task. You just
need to combine two tables into one big table.

> Thanks  Richard

-- 
Best regards, Ruslan.



More information about the rt-users mailing list