[rt-users] rt-crontool and "--action RT::Action::NotifyAsComment"
Eric Maisonobe
viretfr63 at gmail.com
Thu Jan 16 12:46:06 EST 2014
Hello,
I try to use the following cron task :
/opt/rt4/bin/rt-crontool \
--search RT::Search::FromSQL \
--search-arg "Created < '1 day ago' AND (Status = 'new') " \
--action RT::Action::NotifyAsComment \
--action-arg 'OtherRecipients'
--template 'my_nice_template'
but nothing is done (no comment and no notification), because RT complains :
[critical]: Can't call method "CreatorObj" on an undefined value at
> /opt/rt4/bin/../lib/RT/Action/Notify.pm line 134.
> (/opt/rt4/bin/../lib/RT.pm:400)
I look at "/opt/rt4/bin/../lib/RT/Action/Notify.pm line 134" and i see :
> my $creatorObj = $self->TransactionObj->CreatorObj;
>
So, does anybody knows :
-> how to use rt-crontool with "--action RT::Action::NotifyAsComment",
-> or how to specify the default RT system user in the Notify.pm script
something like :
> eval( my $creatorObj = $self->TransactionObj->CreatorObj) || my
> $creatorObj = <RT_DEFAULT_USER_OBJ>;
Thank you for any suggestion !
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140116/0b5b4b95/attachment.htm>
More information about the rt-users
mailing list