[rt-users] How to get the number of tickets in the current queue as part of a reply?

matthew at sorbs.net matthew at sorbs.net
Wed Nov 30 06:48:12 EST 2005


----- Original Message -----
From: Ruslan Zakirov <ruslan.zakirov at gmail.com>
Date: Wednesday, November 30, 2005 4:42 pm
Subject: Re: [rt-users] How to get the number of tickets in the current
queue as part of a reply?
> something like:
> { my $tickets = RT::Tickets->new( $RT::SystemUser );
> $tickets->FromSQL( "Status = 'new' AND Queue = ". $Ticket->Queue );
> $tickets->Count; }
> 
> When you'll check it, please, add it to the
> http://wiki.bestpractical.com/index.cgi?CodeSnippets

Spot on! ;-)

Added to the wiki, and thanks.

Best regards,

Mat



More information about the rt-users mailing list