RT 3.2.2 - Custom Scrip Conditions on Custom Field changes

After migration from RT 3.06 to 3.2.2 my custom scrip writes errors to
syslog and nothing else happens. This is my custom scrip (user defined
condition)

if (($self->TransactionObj->Type eq “CustomField”) and
($self->TransactionObj->Field eq 2) and
($self->TransactionObj->NewValue eq “20 Antrag eingetroffen”)) {
return(1);
} else {
return(undef);
}

And this is what i get:

Jan 21 08:00:23 debian64 RT: Scrip Prepare 92 died. - $/ as given is
currently unsupported at /usr/share/perl5/MIME/Body.pmline 194 Stack:
[/usr/share/perl/5.8/Carp.pm:86]
[/usr/share/perl5/IO/ScalarArray.pm:350]
[/usr/share/perl5/MIME/Body.pm:194]
[/usr/share/request-tracker3.2/lib/RT/I18N.pm:218]
[/usr/share/request-tracker3.2/lib/RT/Action/SendEmail.pm:153]
[/usr/share/request-tracker3.2/lib/RT/Action/Notify.pm:65]
[/usr/share/request-tracker3.2/lib/RT/ScripAction_Overlay.pm:217]
[/usr/share/request-tracker3.2/lib/RT/Scrip_Overlay.pm:468]
[/usr/share/request-tracker3.2/lib/RT/Scrips_Overlay.pm:232]
[/usr/share/request-tracker3.2/lib/RT/Transaction_Overlay.pm:146]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3707]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3471]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3379]
[/usr/share/request-tracker3.2/lib/RT/Interface/Web.pm:1153]
[/usr/share/request-tracker3.2/html/Ticket/Modify.html:71]
[/usr/share/request-tracker3

Thanks in Advance!
– Stefan

After migration from RT 3.06 to 3.2.2 my custom scrip writes errors to
syslog and nothing else happens. This is my custom scrip (user defined
condition)

The entire scrip and the entire error message would be helpful.

Andy Harrison

Hello Andy,

unfortunately this is already the the entire scrip and the relevant
section from syslog. It should return true if a specific keyword is
set. Instead there is a confusing error message. I have no idea…

if (($self->TransactionObj->Type eq “CustomField”) and

($self->TransactionObj->Field eq 2) and

($self->TransactionObj->NewValue eq “25 Antrag unvollständig”)) {

return(1);

} else {

return(undef);

}

cat syslog:

Jan 21 08:00:23 debian64 RT: Scrip Prepare 92 died. - $/ as given is
currently unsupported at /usr/share/perl5/MIME/Body.pmline 194 Stack:
[/usr/share/perl/5.8/Carp.pm:86]
[/usr/share/perl5/IO/ScalarArray.pm:350]
[/usr/share/perl5/MIME/Body.pm:194]
[/usr/share/request-tracker3.2/lib/RT/I18N.pm:218]
[/usr/share/request-tracker3.2/lib/RT/Action/SendEmail.pm:153]
[/usr/share/request-tracker3.2/lib/RT/Action/Notify.pm:65]
[/usr/share/request-tracker3.2/lib/RT/ScripAction_Overlay.pm:217]
[/usr/share/request-tracker3.2/lib/RT/Scrip_Overlay.pm:468]
[/usr/share/request-tracker3.2/lib/RT/Scrips_Overlay.pm:232]
[/usr/share/request-tracker3.2/lib/RT/Transaction_Overlay.pm:146]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3707]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3471]
[/usr/share/request-tracker3.2/lib/RT/Ticket_Overlay.pm:3379]
[/usr/share/request-tracker3.2/lib/RT/Interface/Web.pm:1153]
[/usr/share/request-tracker3.2/html/Ticket/Modify.html:71]
[/usr/share/request-tracker3

Greetings,

Stefan

Andy Harrison wrote:

On Fri, 21 Jan 2005 08:25:21 +0100, Stefan Fischer <stefan@van-boxmer.de> wrote:
  
After migration from RT 3.06 to 3.2.2 my custom scrip writes errors to
syslog and nothing else happens. This is my custom scrip (user defined
condition)
    

The entire scrip and the entire error message would be helpful.

Hello Andy,

unfortunately this is already the the entire scrip and the relevant section
from syslog. It should return true if a specific keyword is set. Instead
there is a confusing error message. I have no idea…

That’s the entire Condition field, it is not the entire scrip.

Andy Harrison

The scrip action is “autoreply to requestor” with a defined template.
The other two fields in
Configuration=>Global=>Scrips=>ScripName are empty.
(userdefined preparation and cleanup code)

Greetings,

  • Stefan

Andy Harrison wrote:

On Mon, 24 Jan 2005 18:00:44 +0100, Stefan Fischer <stefan@van-boxmer.de> wrote:
  
 Hello Andy,

unfortunately this is already the the entire scrip and the relevant section
from syslog. It should return true if a specific keyword is set. Instead
there is a confusing error message. I have no idea…

That's the entire Condition field, it is not the entire scrip.