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.
Any ideas would be most welcome.
Take care!
Nick
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 => $_, ..........
}
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@domain, InitialPriority => “1”,
FinalPriority => “5”, DefaultDueIn => “5”, )
Thank you for your help.
NickFrom: Todd Chapman [mailto:todd@chaka.net]
Sent: Wednesday, December 14, 2005 2:47 PM
To: Nick Metrowsky
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Need to set up many queues
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 => $_, ..........
}
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@domain, InitialPriority => “1”,
FinalPriority => “5”, DefaultDueIn => “5”, )
Thank you for your help.
Nick
perldoc /opt/rt3/lib/RT/Queue_Overlay.pm