Thanks! But what is the wild card for the email value? I need them all stripped.
Thanks again! -----Original message----- From: Christian Loos <[email protected]> To: Randy Black <[email protected]> Cc: [email protected] Sent: Thu, Jan 5, 2012 10:59:01 GMT+00:00 Subject: Re: Strip the requestor $self->TicketObj->DeleteWatcher( Type => 'Requestor', Email => '[email protected]', Silent => 1); Omit the Silent if you want an History entry. -Chris Am 04.01.2012 23:10, schrieb Randy Black: > Anyone? > > Need to strip the requestor on create for a specific queue. > > Thanks, > > Randy > > *From:*[email protected] > [mailto:[email protected]] *On Behalf Of *Randy Black > *Sent:* Wednesday, January 04, 2012 2:01 PM > *To:* [email protected] > *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; > > > > -------- > RT Training Sessions (http://bestpractical.com/services/training.html) > * Boston — March 5& 6, 2012
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Boston March 5 & 6, 2012
