Skip to content
Plugin for creating scheduled tasks from templates
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Fix settings form [skip ci] Feb 8, 2019
config Add copy status setting Feb 8, 2019
db/migrate Adapt for Redmine 4 Dec 10, 2018
lib Improve errors handling Aug 31, 2018
test Fix tests Dec 10, 2018
.gitignore Add gitignore Dec 10, 2018
.travis.yml
CHANGELOG.md Bump version [skip ci] Feb 27, 2019
Gemfile Fix tests Dec 10, 2018
Gemfile.lock Add new features and going to 0.1.0-dev Jul 27, 2017
LICENSE Add MIT license May 11, 2017
README-RU.md Update README-RU.md Mar 19, 2018
README.md Update README.md Mar 19, 2018
init.rb Bump version [skip ci] Feb 27, 2019
travis.sh Add travis-ci. May 12, 2017

README.md

Rate at redmine.org

Redmine Recurring Tasks

Build Status

Русская версия

Plugin for creating scheduled tasks from templates.

Installation

  • Ruby 2.2+
  • Redmine 3.3+
  • Standard plugin installation:
cd {REDMINE_ROOT}
git clone https://github.com/centosadmin/redmine_recurring_tasks.git plugins/redmine_recurring_tasks
bundle install
bundle exec rake redmine:plugins:migrate RAILS_ENV=production

Usage

To use the plugin, you should turn on it in project modules settings. Then you need to go at issue page and you will see Schedule section with "Add" link, which leads you to recurring settings.

Run

To run scheduling task you should run rake task

cd {REDMINE_ROOT}
bundle exec rake redmine_recurring_tasks:exec RAILS_ENV=production

And to do it periodically you may use cron or another external scheduler.

Schedulers

Sidekiq-cron

To run sidekiq-cron tasks you should:

  • Install redis (yum install redis)
  • Install plugin redmine_sidekiq
  • Then you can add initialization file. For example
# /opt/redmine/config/initializers/zz-cron.rb

class RecurringTaskWorker
  include Sidekiq::Worker

  def perform
    checker = RedmineRecurringTasks::IssueChecker.new(Setting.plugin_redmine_recurring_tasks)
    checker.call
  end
end

cron_job_array = [
  {
    'name'  => 'Weekly schedule worker',
    'class' => 'RecurringTaskWorker',
    'cron'  => '*/5 * * * *'
  }
]

Sidekiq::Cron::Job.load_from_array cron_job_array

Whenever

cd {REDMINE_ROOT}
whenever --update-crontab --load-file plugins/redmine_recurring_tasks/config/schedule.rb

Cron manual

$ crontab -e

And add cron job line

*/5 * * * * /bin/bash -l -c 'cd /home/redmine && RAILS_ENV=production bundle exec rake redmine_recurring_tasks:exec'

Settings

If you have any plugins, which for some reason doesn't copying in spawned issues, you can set specific issue associations fields in plugin settings. But be careful — this option can break work plugin scheduler.

For example, if you using plugin Redmine checklists, you can check "checklists" in RedmineRecurringTasks settings.

License

MIT

Author of the Plugin

The plugin is designed by Southbridge

You can’t perform that action at this time.