[rt-devel] Scrip Action

G. Richard Bellamy rbellamy at pteradigm.com
Mon Nov 10 03:43:03 EST 2003


I'm attempting a very basic Scrip, as follows:
 
===============================
Description :Set Priority
 
Condition   :On Create 
 
Action      :User Defined
 
Custom action preparation code:
$RT::Logger->info($Transaction->CreatorObj->EmailAddress);
($Transaction->CreatorObj->EmailAddress =~ /rbellamy\@pteradigm\.com/i)
? 1 : 0;  
 
Custom action cleanup code:
$Ticket->SetPriority("50");  
 
Template    :Global template: Blank
===============================

And I receive the following error in the error log (note that the call
to the $RT::Logger seems to be ignored):

===============================
Nov 10 00:25:42 support RT: RT::Scrip=HASH(0x9bcb548): Couldn't prepare
User Defined (/opt/rt3/lib/RT/Scrip_Overlay.pm:338)
===============================

This seems to indicate that it's my custom action preparation code
that's killing the scrip. I can't seem to find anything that _doesn't_
throw the error.

Any help would be greatly appreciated.
 


G. Richard Bellamy 
Enterprise Solution Architect 
Pteradigm - Evolutionary 
mailto:rbellamy at pteradigm.com 
V:707-869-3665 




More information about the Rt-devel mailing list