In some projects there are tasks that need to be assigned on a schedule. Such as check the ssl registration once per year or run security checks every 3 months
cd </path/to/redmine/dir>git clone https://github.com/wate/redmine_periodic_task.git plugins/periodictaskbundle installbundle exec rake redmine:plugins:migrate NAME=periodictask RAILS_ENV=production- restart Redmine
After you installed the plugin you can add it as a module to a project that already exists or activate it as default module for new projects. On each project it will add a new tab named "Periodic Task" - just go there to add your tasks.
cd </path/to/redmine/dir/>plugins/periodictaskgit pullbundle installbundle exec rake redmine:plugins:migrate NAME=periodictask RAILS_ENV=production- restart Redmine
cd </path/to/redmine/dir>bundle exec rake redmine:plugins:migrate NAME=periodictask VERSION=0 RAILS_ENV=productionrm -rf plugins/periodictask- restart Redmine
Go to your console and run which bundle.
In my case, that command returned bundle.
Use that to configure cron like this
As root do crontab -e and add this to the last line
0 1 * * * cd </path/to/redmine/dir>; bundle exec rake redmine:check_periodictasks RAILS_ENV=production
You can also make it run once per hour
0 * * * * cd </path/to/redmine/dir/>; bundle exec rake redmine:check_periodictasks RAILS_ENV=production
Or even every 10 minutes
*/10 * * * * cd </path/to/redmine/dir/>; bundle exec rake redmine:check_periodictasks RAILS_ENV=production
If you want to substitute variables **DAY**, **WEEK**, **MONTH**, **MONTHNAME**, **YEAR**, **PREVIOUS_MONTHNAME**, **PREVIOUS_MONTH** with a localized version in your laguage please add LOCALE=ja
(available are de, en, ja, tr, ru, tr, zh) to cronjob like this
0 * * * * cd </path/to/redmine/dir/>; bundle exec rake redmine:check_periodictasks RAILS_ENV=production LOCALE=ja
redmine 4.1 - 5.0
redmine-periodictask supports redminecrm checklist PRO to be used when creating a periodic task.
- rk team (Current maintainer)
- jperelli (Maintainer)
- Tanguy de Courson (Original Author)
GNU GPLv3