[rt-users] Need to set up many queues

Todd Chapman todd at chaka.net
Wed Dec 14 17:47:23 EST 2005


On Wed, Dec 14, 2005 at 03:05:13PM -0700, Nick Metrowsky wrote:
> Hi Todd,
> 
> Thank you for your info. Just curious, I suspect I can specify fields in
> the create command:
> 
> $q->Create( Name => $_, Description => "text, CorrespondAddress => "user
> @domain", CommentAddress => "user at domain, InitialPriority => "1",
> FinalPriority => "5", DefaultDueIn => "5",,,, )
> 
> Thank you for your help.
> 
> Nick

perldoc /opt/rt3/lib/RT/Queue_Overlay.pm

> 
> -----Original Message-----
> From: Todd Chapman [mailto:todd at chaka.net] 
> Sent: Wednesday, December 14, 2005 2:47 PM
> To: Nick Metrowsky
> Cc: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] Need to set up many queues
> 
> On Wed, Dec 14, 2005 at 02:02:45PM -0700, Nick Metrowsky wrote:
> > Hi Everyone,
> > 
> >  
> > 
> >  Is there a good way to set up a bunch of queues rather quickly, as I
> > need too set up over 30 Queues. I have been playing with a perl script
> > that adds queues to the Queue table and Roles to the Groups table to
> > assign Cc, AdminCc, Requestor, and Owner. When I employ this method,
> the
> > Roles do not show up on the Queue Groups Rights area. They only do
> when
> > a Queue is create via Request Tracker.
> > 
> 
> You need to use the RT Perl API!
> 
> use RT;
> use RT::Queue;
> 
> RT::LoadConfig();
> RT::Init();
> 
> for ( qw ( q_A q_B q_C ) ) {
> 
>     my $q = RT::Queue->new( $RT::SystemUser );
>     $q->Create( Name => $_, ..........
> 
> }
> 
> 



More information about the rt-users mailing list