6hoursdaily / redmine_digest

A plugin for the Redmine issue tracking system which emails a digest of the project's activity to its members.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Digest

NOTE to upgraders from 0.0.1: You MUST perform db:migrate_plugins after upgrading!!!

This plugin sends email digests of project activity.

Author

  • Drew Keller <drew_-AT-drewkeller-DOT-_com>

Changelog

For the complete changelog see the CHANGELOG file in the plugin’s directory.

Purpose

This plugin includes a rake job which builds a digest or summary of each project and emails it to all of the project’s members.

Compatibility

This plugin is compatible with Redmine 1.2.x as well as with the current Redmine trunk.

Obtaining

GitHub repository: github.com/drewkeller/redmine_digest

The source of this plugin can be cloned from GitHub using:

$ cd {RAILS_ROOT}/vendor/plugins && git clone git://github.com/drewkeller/redmine_digest.git

Installation

Usage

Use a scheduler to call the task. The following options can be set on the command line. All of these options are optional. If an option is included on the command line, it overrides the setting on the plugins settings page.

start   : number of days ago to start.
          0 = today, 1 = start from yesterday, 7 = start a week ago from today

days    : number of days to include in the digest

project : name or id of a specific Redmine project to create a digest for

Create a cron job with a line similar to this:

1 0 * * 1-7 www-data cd /path/to/redmine && /usr/bin/rake redmine:send_digest start=1 days=1 project=myproject RAILS_ENV="production"

Or create a Windows task with a line similar to this:

cmd /C rake redmine:send_digest start=1 days=1 project=myproject RAILS_ENV="production"

Or install rufus-scheduler and add an initializer to REDMINE_ROOT/config/initializers/digest_tasks.rb, like…

scheduler.cron '01 00 * * 1-7' do

# every day at 00:01 (12:01am) options = { :start => 1, :days => 1, :project => ‘myproject’ } DigestController.new.send_digest(options)

end

Examples

Example 1: Daily Digest for single project

  • Creates a daily digest for a single Redmine project. Since “start” and “days” are set on the command line, they can be different from the settings on the plugin settings page.

  • The command lines in the usage section are examples of this strategy.

Example 2: Daily Digest

  • Creates a daily digest for each Redmine project

Set the scheduler to run after midnight. On the plugins settings page, set ‘days to include’ to 1 and set ‘days ago to start’ to 1. Some example scheduler commands are below.

  • Cron job:

    1 0 * * 1-7 www-data cd /path/to/redmine && /usr/bin/rake redmine:send_digest RAILS_ENV="production"
  • Windows task set to run at 12:01am daily:

    cmd /C rake redmine:send_digest RAILS_ENV="production"
  • rufus-scheduler (REDMINE_ROOT/config/initializers/digest_tasks.rb)

    scheduler.cron '01 00 * * 1-7' do

# every day at 00:01 (12:01am) options = { } DigestController.new.send_digest(options)

end

Example 3: Weekly Digest

  • Creates a weekly digest for each Redmine project

Set the scheduler to run after midnight. On the plugins settings page, set ‘days to include’ to 7 and set ‘days ago to start’ to 8. Some example scheduler commands are below.

  • Cron job:

    1 0 * * 2 www-data cd /path/to/redmine && /usr/bin/rake redmine:send_digest RAILS_ENV="production"
  • Windows task set to run at 12:01am weekly:

    cmd /C rake redmine:send_digest RAILS_ENV="production"
  • rufus-scheduler (REDMINE_ROOT/config/initializers/digest_tasks.rb)

    scheduler.cron '01 00 * * 2' do

# on Monday at 00:01 (12:01am) options = { } DigestController.new.send_digest(options)

end

Upgrading

  • Copy the currently deployed Digest plugin folder to a backup folder

  • Update the plugin using git pull

Or

  • Copy the currently deployed Digest plugin folder to a backup folder

  • Replace the plugin folder and it’s contents with the new one

Uninstalling

  • Remove the plugin folder from the plugin-directory “REDMINE_ROOT/vendor/plugins/digest”

  • Remove the cronjob entry or Windows task

Licensing

This plugin is open-source and licensed under the “GNU General Public License v2” (GPL, www.gnu.org/licenses/old-licenses/gpl-2.0.html). See the included GPL.txt and LICENSE.txt files for details.

  • © 2011 Drew Keller

Support

If you would like to report a bug or request a new feature you can:

You can also post your feedback about the plugin in the dedicated plugin-section of the Redmine forums (www.redmine.org/projects/redmine/boards/3)

As an alternative you can also join the #redmine channel on the “freenode IRC network” (freenode.net/irc_servers.shtml) to see if there is anyone who can provide some support.

Thanks

Please see THANKS.txt

About

A plugin for the Redmine issue tracking system which emails a digest of the project's activity to its members.

License:Other