[rt-users] How to Auto Resolve tickets with no subject

Roy El-Hames rfh at pipex.net
Wed Jul 25 13:07:19 EDT 2007


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: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
>
>   




More information about the rt-users mailing list