[rt-users] Scrip for Default Owners
Stephen Turner
sturner at MIT.EDU
Wed Mar 30 15:15:11 EST 2005
At Wednesday 3/30/2005 01:52 PM, Dave Edwards wrote:
>my %defaultOwners = (
> # Queue => user
> '3' => '22', # Foo => bob
> '4' => '26', # Bar => carole
> '5' => '28', # Fud => ted
> '1' => '10', # General => alice
>);
>
># if owner of this new ticket is Nobody
>if ($ticket->Owner eq '10') {
> # change the owner from Nobody to default for this queue
> $ticket->SetOwner($defaultOwners[$ticketsQueue]);
>
>What have I done wrong here?
Curly brackets? $defaultOwners{$ticketsQueue}
The RT log may have shown an error message for this.
Steve
More information about the rt-users
mailing list