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@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.
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@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.
The rt-users Archives
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