Thanks, setting it to eq worked. 

-----Original Message-----
From: Roy El-Hames [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 12:07 PM
To: Dalal, Kamber Z (Kamber)
Cc: [email protected]
Subject: Re: [rt-users] How to Auto Resolve tickets with no subject

maybe

$self->TicketObj->Subject ="" should be $self->TicketObj->Subject == ""
or even $self->TicketObj->Subject eq ""

Roy



Dalal, Kamber Z (Kamber) wrote:
> I have written the following custom script to set the status of 
> resolved for tickets created via e-mail or web GUI, but missing 
> subject.  Alas it fails.
>
> Condition: User Defined
>
> Action: User Defined
>
> Custom condition:
>
> return 0 unless ($self->TransactionObj->Type eq "Create" && 
> $self->TicketObj->Subject =""); 1;
>
>
> Custom action preparation code:
>
> return 1;
>
>
> Custom action cleanup code:
>
> $self->TicketObj->SetStatus( "resolved"); return 1;
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com Commercial support: 
> [EMAIL PROTECTED]
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
>
>   

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Reply via email to