Client-side tools for RT
Find a file
Bradley M. Kuhn 5ca9c0c0b3 Outreachy Payment Next script for RT
The Outreachy tickets have to move in some semi-automated fashion when
Conservancy receives approval from the Outreachy PLC that mentors have
approved Outreachy payments.

This script will likely be too specific that it can't be used outside of
Conservancy, but the details of what it does might be useful to learn how to
glue together RT operations from the RT CLI.

This first pass simply finds the tickets via the file names of the approval
files as sent by Outreachy PLC.
2018-07-15 08:30:36 -07:00
scripts Outreachy Payment Next script for RT 2018-07-15 08:30:36 -07:00
LICENSE LICENSE: Initial commit. 2018-05-15 06:39:46 -04:00
README.md README: Initial commit. 2018-05-15 06:58:06 -04:00

RT-Client-Tools

Installation

Just copy the scripts into a directory in your $PATH.

Dependencies are:

  • Python 3
  • PyYAML (python3-pyyaml in Debian)
  • The rt CLI tool needs to be installed and configured

rt-bulk-send

This tool can send correspondence, or make a comment, on every ticket that matches an RT search.

rt-auto-remind

This tool lets you run rt-bulk-send on a timer. You specify a range on a ticket's date field as part of your search. For example, you can send mail on all non-closed tickets in your queue with Due dates that are between 10 and 15 days out:

$ rt-auto-remind Due 10 15 'Queue = MyQueue and Status != __inactive__' my_mail.txt

Then you can run this command again tomorrow, and it will only send mail to tickets that have come due since the last run. In other words, it remembers what searches it has already run, and never searches over the same date range twice. This makes it suitable to run from a systemd timer or cron.

rt-send-all-reminders

This is a convenience wrapper for rt-auto-remind. You can specify your reminders in a YAML file, and this tool will call rt-auto-remind for each and report the result.

Copyright © 2018 Brett Smith brettcsmith@brettcsmith.org

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.