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

Reply via email to