Problem sending notifications from rt-crontool

RT 3.2.1

Why doesn’t this work?

/opt/rt3/bin/rt-crontool --search RT::Search::ActivtsInQueue
–search-arg ‘General’
–condition RT::Condition::PriorityExceeds
–condition-arg 2
–action RT::Action::NotifyAsComment
–action-arg AdminCc
–template-id “Reminder”
–verbose

[Tue Sep 21 15:17:02 2004] [crit]: Can’t call method “CreatorObj” on an undefined value at /opt/rt3/lib/RT/Action/Notify.pm line 128.
(/opt/rt3/lib/RT.pm:257)

I looked in subversion and saw that rt-crontool was changed to
allow notification after 3.2.1 so I applied the diffs, which
got me farther, but it still doesn’t work. rt-crontool doesn’t
pass a TransactionObj when it creates a new Action. Notify.pm
uses the TransactionObj so things go all wonky.

What would be the appropriate code to add to rt-crontool to
set up a new transaction?

Thanks!

-Todd

RT 3.2.1

Why doesn’t this work?

I looked in subversion and saw that rt-crontool was changed to
allow notification after 3.2.1 so I applied the diffs, which
got me farther, but it still doesn’t work. rt-crontool doesn’t
pass a TransactionObj when it creates a new Action. Notify.pm
uses the TransactionObj so things go all wonky.

Did you also apply the diffs to the Scrips system?

I upgraded to 3.2.2rc1 but I get the same error.

Any other suggestions?

$ svn diff svn://svn.bestpractical.com/rt/tags/3.2.2rc1/lib/RT/ svn://svn.bestp
ractical.com/rt/branches/3.3-TESTING/lib/RT/ | grep revision | grep Scrip | wc
-l
0

Thanks.

-ToddOn Tue, Sep 21, 2004 at 12:09:40PM -0400, Jesse Vincent wrote:

On Sep 21, 2004, at 10:45 AM, Todd Chapman wrote:

RT 3.2.1

Why doesn’t this work?

I looked in subversion and saw that rt-crontool was changed to
allow notification after 3.2.1 so I applied the diffs, which
got me farther, but it still doesn’t work. rt-crontool doesn’t
pass a TransactionObj when it creates a new Action. Notify.pm
uses the TransactionObj so things go all wonky.

Did you also apply the diffs to the Scrips system?

What would be the appropriate code to add to rt-crontool to
set up a new transaction?

Thanks!

-Todd


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT wiki at http://wiki.bestpractical.com