[rt-users] Autoclose a Specific Subject String

Todd Chapman todd at chaka.net
Thu Dec 8 11:45:10 EST 2005


Perl problem.

$self->TicketObj->Subject = "My Subject"

should be:

$self->TicketObj->Subject eq "My Subject"

On Thu, Dec 08, 2005 at 05:35:15PM +1100, Matt -|- Cheeky Nature -|- wrote:
> Hi all.
> 
> I would like to Autoclose a ticket matching an exact subject.
> I am on RT 3.4.4
> This is what I have tried. (mostly from http://www.soundwave.net/~wmono/rt/)
> 
> Description: Auto-Close
> Condition: On Create
> Action: User Defined
> Template: Global template: Blank
> Stage: TransactionCreate
> Custom condition:
> 
> if (($self->TicketObj->Subject = "My Subject" )  &&
> ($self->TicketObj->Sender = "apache at localhost" )) {
> 1;
> } else {
>   undef;
> }
> 
> Custom action preparation code: 1;
> Custom action cleanup code:
> 
> $self->TicketObj->SetStatus( "resolved" );
> 1;
> 
> 
> 
> Prob Obvious but alas I am no Perl or otherwise programmer... TIA
> 
> Regards, Matt.
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> 
> Download a free sample chapter of RT Essentials from O'Reilly Media at http://rtbook.bestpractical.com
> 
> WE'RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
> San Francisco - Find out more at http://bestpractical.com/services/training.html



More information about the rt-users mailing list