I figured it out with rt-crontool on RT 3.6.3:

rt-crontool --search RT::Search::FromSQL --search-arg "(Status='stalled')" 
--action RT::Action::Notify --action-arg Requestor --template-id 15 
--transaction last --transaction-type Correspond

The real trouble was with rights in RT - the user in rt which is linked to 
system user running the cron job must have the rights to read templates, 
tickets and all correpondence of ticket. If he has not, no error message is 
given and the action will just not occur. I had to do some serious digging into 
the code to figure out what's wrong. Hope this will help other users to save 
time.

-- 
Tomáš Valenta
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to