From 9971eeed15978f1e9caf1a0ef51947628cbc13c7 Mon Sep 17 00:00:00 2001 From: Craig Kaiser Date: Thu, 5 Jul 2018 16:55:33 -0400 Subject: [PATCH] Add documentation for automating-rt, using rt-crontool with multiple --action parameters. --- docs/automating_rt.pod | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/automating_rt.pod b/docs/automating_rt.pod index 11960c38bdb..46059b71a2e 100644 --- a/docs/automating_rt.pod +++ b/docs/automating_rt.pod @@ -78,6 +78,21 @@ The C<--action> argument is set to L which is the base class for RT actions. Since this class doesn't perform any action itself, this command will just output the results of the TicketSQL search. +=head2 Multiple --Action Parameters + + /opt/rt4/bin/rt-crontool \ + --search RT::Search::FromSQL \ + --search-arg "Status = 'stalled'" \ + --action RT::Action::SetStatus --action-arg resolved \ + --action RT::Action::Notify \ + --action-arg 'Requestor' \ + --transaction last \ + --template 'Stalled ticket resolved' \ + +rt-crontool can take more than one --action parameter to perform multiple steps at a time. In the example above +two actions are completed, first the SetStatus action then the Notify action. + + =head1 Auto-resolve Aged Tickets You can auto-set status based on any criteria you can define in