[rt-users] Autoclose a Specific Subject String

Matt -|- Cheeky Nature -|- matt at cheekynature.com
Thu Dec 8 01:35:15 EST 2005


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.




More information about the rt-users mailing list