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

Dalal, Kamber Z (Kamber) kamber.dalal at verizonbusiness.com
Wed Jul 25 13:12:17 EDT 2007


Thanks, setting it to eq worked. 

-----Original Message-----
From: Roy El-Hames [mailto:rfh at pipex.net] 
Sent: Wednesday, July 25, 2007 12:07 PM
To: Dalal, Kamber Z (Kamber)
Cc: rt-users at lists.bestpractical.com
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: 
> 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