Project

General

Profile

Feature #28638 » reminder.rake.patch

Davide Giacometti, 2018-04-26 12:03

View differences:

lib/tasks/reminder.rake
21 21
Available options:
22 22
  * days     => number of days to remind about (defaults to 7)
23 23
  * tracker  => id of tracker (defaults to all trackers)
24
  * statuses => comma separated list of issue_statuses ids (defaults to all issue_statuses)
24 25
  * project  => id or identifier of project (defaults to all projects)
25 26
  * users    => comma separated list of user/group ids who should be reminded
26 27
  * version  => name of target version for filtering issues (defaults to none)
......
35 36
    options[:days] = ENV['days'].to_i if ENV['days']
36 37
    options[:project] = ENV['project'] if ENV['project']
37 38
    options[:tracker] = ENV['tracker'].to_i if ENV['tracker']
39
    options[:statuses] = (ENV['statuses'] || '').split(',').each(&:strip!)
38 40
    options[:users] = (ENV['users'] || '').split(',').each(&:strip!)
39 41
    options[:version] = ENV['version'] if ENV['version'] 
40 42

  
(2-2/2)