[rt-users] Getting Queue Name via Perl

Ruslan Zakirov ruslan.zakirov at gmail.com
Fri Mar 10 19:13:30 EST 2006


On 3/11/06, Nick Metrowsky <nmetrowsky at digitalglobe.com> wrote:
>
>
>
> Hi Everyone,
>
>
>
> Given the numeric Queue Id, what is the syntax for getting the Textual
> Representation of the Queue Name?
>
>
>
> Is it:
>
>
>
> my $Queue;
>
> my $qname
>
>
>
> $Queue = RT::Queue($session('CurrentUser'));;
>
> $qname = RT::Queue(i$Queue>Name);?
>
> print "The name of the queue is: $qname\n";
>

my $queue_id = 10;
my $queue_obj = RT::Queue->new( $session{'CurrentUser'} );
$queue_obj->Load( $queue_id );
my $queue_name = $queue_obj->Name;

>
>
> The above doesn't work, any ideas would be most welcome.
>
>
>
> Take care!
>
>
>
> Nick
>
>
>
> ---------------------------------------------------------------------------------
>
> Nick Metrowsky
>
> Consulting System Administrator
>
> 303-684-4785 Office
>
> 303-684-4100 Fax
>
> nmetrowsky at digitalglobe.com
>
> DigitalGlobe (r), An Imaging and Information Company
>
> http://www.digitalglobe.com
>
> ---------------------------------------------------------------------------------
>
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>
> We're hiring! Come hack Perl for Best Practical:
> http://bestpractical.com/about/jobs.html
>
>


--
Best regards, Ruslan.


More information about the rt-users mailing list