I thought I had this working, but on further testing it appears that rt-crontool is only performing the last action argument passed to it. This is what I'm trying to do: rt-crontool --search RT::Search::FromSQL --search-arg "Status = 'stalled' AND Starts < 'tomorrow' AND Starts > 'NULL' " --action RT::Action::SetStatus --action-arg "open" --action RT::Action::RecordComment --template 'Started Ticket'
With that command, a comment is recorded, but the ticket state is not changed to open. If I swap the setstatus and recordcomment actions around, then the status is changed, but the comment is not recorded. Is it just not possible to have rt-crontool perform two actions on the same search? Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
