[rt-users] Strip the requestor
Brent Wiese
bwiese at ElementPS.com
Wed Jan 4 18:25:00 EST 2012
Looks like it's probably moving queues and not getting to the SetRequestor. I had this happen to me on a scrip too. Think it's firing off the change queue event before it finishes the rest of your scrip.
Maybe reverse order of operations or break it into 2 scrips, possible putting the SetRequestor as an "On Queue Change" TransactionCreate scrip on the "Contact Us" queue...
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Randy Black
Sent: Wednesday, January 04, 2012 3:11 PM
To: Randy Black; rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Strip the requestor
Anyone?
Need to strip the requestor on create for a specific queue.
Thanks,
Randy
From: rt-users-bounces at lists.bestpractical.com<mailto:rt-users-bounces at lists.bestpractical.com> [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Randy Black
Sent: Wednesday, January 04, 2012 2:01 PM
To: rt-users at lists.bestpractical.com<mailto:rt-users at lists.bestpractical.com>
Subject: [rt-users] Strip the requestor
I need to strip the requestor from tickets belonging to a queue. How do I do that?
This seems to not be working:
my $newqueue = "Contact\ Us";
my $newrequestor = "nobody";
my $T_Obj = $self->TicketObj;
$RT::Logger->info("Auto assign ticket #". $T_Obj->id ." to queue #". $newqueue );
my ($status, $msg) = $T_Obj->SetQueue($newqueue);
unless ($status) {
$RT::Logger->warning("unable to set new queue: $msg");
return undef;
}
$RT::Logger->info("Auto assign ticket #". $T_Obj->id ." to user #". $newrequestor );
my ($status, $msg) = $self->TicketObj->SetRequestor( $newrequestor );
unless( $status ) {
$RT::Logger->error( "Impossible to assign the ticket to $newrequestor: $msg" );
return undef;
}
return 1;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120104/075c73f6/attachment.htm>
More information about the rt-users
mailing list