Skip to content

Commit

Permalink
Merge branch '4.4/automating-rt-multiple-actions-docs' into 4.4-trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnavy committed Aug 25, 2023
2 parents 2e96570 + 9971eee commit a28f420
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/automating_rt.pod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a28f420

Please sign in to comment.