[rt-users] rt-crontool question

Kevin Falcone falcone at bestpractical.com
Fri Feb 3 18:51:40 EST 2012


On Fri, Feb 03, 2012 at 06:12:57PM -0500, Mark Fuller wrote:
> That worked for the most part but now it has an issue sending out the
> email using  SendEmailFromRTSystem  it breaks on
> 
> my $creator = $self->TransactionObj->CreatorObj->EmailAddress();
> 
> I have tried several other actions and they all do the same thing


I forgot to mention that SendEmailFromRTSysten is *also* a custom
action you'll need to forward port.  You might get away with the
Notify action, you'll definitely need to provide the --transaction
command line argument, which you can read more about in the initial
--help.

-kevin

> 
> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com
> [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Kevin
> Falcone
> Sent: Friday, February 03, 2012 2:01 PM
> To: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] rt-crontool question
> 
> 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.
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> * Boston  March 5 & 6, 2012
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120203/3dcf89fb/attachment.sig>


More information about the rt-users mailing list