[rt-users] RT4.0.4 Custom Scrip Guidance
Ronald J. Yacketta
yacketrj at potsdam.edu
Thu Jan 26 08:38:42 EST 2012
All,
We have an external perl script that trolls through the RT MySQL DB
looking for recent transactions with a specific CF that has been
updated. The script will pull out specific data from the DB and update
an External Site for notifications. The script is used to inform the
campus when we are planning server maintenance or are working on a issue
that impacts the campus.
Would like to convert the external perl script into a RT Custom Scrip
that acts upon 'Correspond' || 'Comment' && CF modification, when those
conditions are met the Custom Action will call an external perl script
with appropriate data to update the notification www site.
Have the following (based on
http://requesttracker.wikia.com/wiki/OnCustomFieldValueChange) which
throws 'RT: Couldn't load object RT::Transaction #0
(/opt/rt4/sbin/../lib/RT/Interface/Web.pm:2164)' in the log
unless (
( ($self->TransactionObj->Type eq "Correspond"
|| $self->TransactionObj->Type eq "Comment")
&& $self->TransactionObj->Field == 18 )
) {
return 0;
}
return 0 unless $self->TicketObj->FirstCustomFieldValue('External
Updates') =~ /Public Status/i;
1;
Regards,
Ron
More information about the rt-users
mailing list