[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-users
Subject:    Re: [rt-users] How to get the number of tickets in the current queue
From:       matthew () sorbs ! net
Date:       2005-11-30 11:48:12
Message-ID: 4f842ed8.2ed84f84 () sorbs ! net
[Download RAW message or body]

----- Original Message -----
From: Ruslan Zakirov <ruslan.zakirov@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
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Download a free sample chapter of RT Essentials from O'Reilly Media at http://rtbook.bestpractical.com

WE'RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at http://bestpractical.com/services/training.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic