[rt-users] Strip the requestor

Randy Black Randy.Black at Buckle.com
Wed Jan 4 15:01:16 EST 2012


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/42dd4436/attachment.htm>


More information about the rt-users mailing list