diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-07 07:56:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-07 07:56:58 +0000 |
commit | e94920a5ff5aff6ef7bb23f8852ee119f8fdca53 (patch) | |
tree | 388cdfc188e7ab492e0212f6675151d2d91b3b6c /lib/tasks | |
parent | bce16a471cb904f05f8321e35f18cbd56ce9481d (diff) | |
download | redmine-e94920a5ff5aff6ef7bb23f8852ee119f8fdca53.tar.gz redmine-e94920a5ff5aff6ef7bb23f8852ee119f8fdca53.zip |
Allow filtering of Redmine Reminders by Version (#18983).
Patch by Merul Patel.
git-svn-id: http://svn.redmine.org/redmine/trunk@13964 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/reminder.rake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tasks/reminder.rake b/lib/tasks/reminder.rake index 289c8b11a..38072978f 100644 --- a/lib/tasks/reminder.rake +++ b/lib/tasks/reminder.rake @@ -23,6 +23,7 @@ Available options: * tracker => id of tracker (defaults to all trackers) * project => id or identifier of project (defaults to all projects) * users => comma separated list of user/group ids who should be reminded + * version => name of target version for filtering issues (defaults to none) Example: rake redmine:send_reminders days=7 users="1,23, 56" RAILS_ENV="production" @@ -35,6 +36,7 @@ namespace :redmine do options[:project] = ENV['project'] if ENV['project'] options[:tracker] = ENV['tracker'].to_i if ENV['tracker'] options[:users] = (ENV['users'] || '').split(',').each(&:strip!) + options[:version] = ENV['version'] if ENV['version'] Mailer.with_synched_deliveries do Mailer.reminders(options) |