Folks,<div><br></div><div>I am unable to use the rt-crontool with NotifyGroup action </div><div><br></div><div>This is what I am running</div><div><br></div><div><div>/opt/rt4/bin/rt-crontool --search RT::Search::ActiveTicketsInQueue  --search-arg QueueName --condition RT::Condition::Overdue --action RT::Action::NotifyGroup --action-arg GroupName</div>
</div><div><br></div><div><br></div><div>And this is the error I get</div><div><br></div><div><div>[Fri Aug  3 09:03:43 2012] [critical]: Can't call method "CreatorObj" on an undefined value at /opt/rt4/bin/../lib/RT/Action/NotifyGroup.pm line 87. (/opt/rt4/bin/../lib/RT.pm:341)</div>
</div><div><br></div><div>This is the function that is failing</div><div><br></div><div><div>sub SetRecipients {</div><div>    my $self = shift;</div><div><br></div><div>    my $arg = $self->Argument;</div><div>    foreach( $self->__SplitArg( $arg ) ) {</div>
<div>        $self->_HandleArgument( $_ );</div><div>    }</div><div><br></div><div>    my $creatorObj = $self->TransactionObj->CreatorObj;</div><div>    my $creator = $creatorObj->EmailAddress();</div><div><br>
</div><div>    my $TransactionCurrentUser = RT::CurrentUser->new;</div><div>    $TransactionCurrentUser->LoadByName($creatorObj->Name);</div><div><br></div><div>    unless (RT->Config->Get('NotifyActor',$TransactionCurrentUser)) {</div>
<div>        @{ $self->{'To'} } = grep ( !/^\Q$creator\E$/, @{ $self->{'To'} } );</div><div>    }</div><div><br></div><div>    $self->{'seen_ueas'} = {};</div><div><br></div><div>    return 1;</div>
</div><div>}</div><div><br></div><div>And the line that is failing is  my $creatorObj = $self->TransactionObj->CreatorObj;</div><div><br></div><div><br></div><div>I checked to see that the group is getting loaded correctly. But it is not able to get hold of a transactionObk it seems like.</div>
<div><br></div><div>That makes sense since there is no transaction that has occured. Rather this is a cronjob which is triggering the action.</div><div><br></div><div><br></div><div><br></div><div><br></div>