It generates and sends email digests about Redmine issues that meet the given criteria (SQL query).
It queries the data to be reported directly from the database so it doesn't bloat your Redmine installation, doesn't require new gems nor does it depend on APIs. It only depends on the database schema.
The following command-line tools on any OS which has them:
- sh
- mkdir
- rm
- wc
- grep
- curl
- psql (for PostgreSQL) or sqlite3 (for SQLite)
It is tested and works flawlessly on Windows 8.1 (with Git, pgAdmin and SQLite shell) and on Ubuntu 12.10/13.10.
I don't use them thus I can't test them, so patches are welcome. All it would take is just coding and testing the commands for feeding their corresponding command-line tools with the report queries in query.sh
and new_report.sh
.
If it's feasible in your setup, you may also try to migrate to PostgreSQL which is a good idea in any case :)
- Rename
config.sh.example
toconfig.sh
and set it up according to your environment. - Create a new report config with
./new_report.sh
, it should be self-explanatory.- If needed, open
data/report_name
and modify the query (WHERE
statement) accordingly.
- If needed, open
- Send the report with
./report.sh report_name [subject]
.report_name
is the name of the report as in thedata
folder.subject
will be added to the email subject if provided. You can useTODAY
for the current date and/orYESTERDAY
for yesterday's, e.g.Closed Issues on YESTERDAY
will be sent asClosed Issues on 2014-01-10
.
Add cronjobs (Unix) or scheduled tasks (Windows). See crontab.example
for examples.
Because this is just a bunch of shell scripts. You can safely use the Git version.
Check out the scripts, they should be straightforward to anyone administering Redmine.