On Fri, Feb 03, 2012 at 01:39:15PM -0500, Mark Fuller wrote: > I have 3 things we did from cron we updated to 4.0.2 from 3.6 and they > don*t work now. Can > someone advise what I have to change > > ## At 3 am everyday send a notification to the requestors of tickets in > custpndng untouched > for 3 days > > 30 3 */1 * * root /opt/rt4/bin/rt-crontool --search > RT::Search::TicketsWithStatus --search-arg
RT::Search::TicketsWithStatus isn't an RT built-in. You'll either need to port this customization from your 3.6 install or replace it with RT::Search::FromSQL and an arg of something like Status = 'custpndng' -kevin > custpndng --condition RT::Condition::UntouchedInHours --condition-arg 72 > --action > RT::Action::NotifyFromRTSystem --action-arg Requestor --template-id 20 > --verbose > > /var/log/cpend7daynotifyrequestor.out > > # > > ## At 3 am everyday resolve tickets in custpndng untouched for 17 days > > 0 3 */1 * * root /opt/rt4/bin/rt-crontool --search > RT::Search::TicketsWithStatus --search-arg > custpndng --condition RT::Condition::UntouchedInHours --condition-arg 168 > --action > RT::Action::SetStatus --action-arg resolved --verbose > > /var/log/cpend14dayresolve.out > > # > > ## At 3 am everyday send a notification to the owners of open tickets > untouched in 1 days > > 45 3 */1 * * root /opt/rt4/bin/rt-crontool --search > RT::Search::TicketsWithStatus --search-arg > open --condition RT::Condition::UntouchedInHours --condition-arg 24 > --action > RT::Action::NotifyFromRTSystem --action-arg Owner --template-id 21 > --verbose > > /var/log/open3daynotifyowner.out > > I get an error when they run > > [crit]: Failed to load module RT::Search::TicketsWithStatus. () at > /opt/rt4/bin/rt-crontool > line 307. (/opt/rt4/bin/../lib/RT.pm:340) > > Failed to load module RT::Search::TicketsWithStatus. () at > /opt/rt4/bin/rt-crontool line 307.
pgpgUvQTGZPk5.pgp
Description: PGP signature
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Boston March 5 & 6, 2012