i also had same issue some time ago and solved it like this:<br><br>$CRONTOOL --search RT::Search::ActiveTicketsInQueue --search-arg $QUEUE --condition RT::Condition::UnownedTicket --condition-arg $PERIOD --action RT::Action::Notify --action-arg $EMAIL --transaction first --template $TEMPLATE<br>
<br>Notify and notifyGroup seems to work similar. i had an alias on mail server for specific group, so it was acceptable for me to send one message to this alias.<br><br>but key thing is to use --transaction [first | last | all] to show what transaction you want to process.<br>
<br><div class="gmail_quote">On Fri, Aug 3, 2012 at 11:23 AM, Shrivallabh Deshmukh <span dir="ltr"><<a href="mailto:shrivallabh.deshmukh@sungard.com" target="_blank">shrivallabh.deshmukh@sungard.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>
</blockquote></div><br><br clear="all"><br>-- <br>Jack Zabolotnyi<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(80,0,80)">Arces Network, LLC</span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(80,0,80)"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse;color:rgb(80,0,80)">e: <a href="mailto:jzabolotnyi@arces.net" style="color:rgb(17,85,204)" target="_blank">jzabolotnyi@arces.net</a><br>
w: <a href="http://www.arces.net/" style="color:rgb(17,85,204)" target="_blank">http://www.arces.net</a><br><br><span style="color:rgb(34,34,34)"><div>PGP key: 2048R/7F2AB658 2012-07-02</div><div>PGP fingerprint: 4C7E 00A8 5210 F3D9 0509 C70E 87C8 666E 7F2A B658</div>
</span></span></div><br>