From e94920a5ff5aff6ef7bb23f8852ee119f8fdca53 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 7 Feb 2015 07:56:58 +0000 Subject: 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 --- lib/tasks/reminder.rake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/tasks') 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) -- cgit v1.2.3