[Rt-commit] rt branch, 4.4/automating-rt-multiple-actions-docs, created. rt-4.4.3-19-g9971eeed1

Craig Kaiser craig at bestpractical.com
Thu Jul 5 16:59:44 EDT 2018


The branch, 4.4/automating-rt-multiple-actions-docs has been created
        at  9971eeed15978f1e9caf1a0ef51947628cbc13c7 (commit)

- Log -----------------------------------------------------------------
commit 9971eeed15978f1e9caf1a0ef51947628cbc13c7
Author: Craig Kaiser <craig at bestpractical.com>
Date:   Thu Jul 5 16:55:33 2018 -0400

    Add documentation for automating-rt, using rt-crontool with multiple --action parameters.

diff --git a/docs/automating_rt.pod b/docs/automating_rt.pod
index 11960c38b..46059b71a 100644
--- a/docs/automating_rt.pod
+++ b/docs/automating_rt.pod
@@ -78,6 +78,21 @@ The C<--action> argument is set to L<RT::Action> 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

-----------------------------------------------------------------------


More information about the rt-commit mailing list