The plugin automatically closes issues that have been resolved but not closed for a specified interval.
Compatible with Redmine versions: 5.x, 4.x.
The plugin provides a settings page where you can specify:
*
for all projects.There are two ways to initial an auto close, rake task and REST API.
Call bundle exec rake <task name>
form Redmine root dir:
Tasks:
autoclose:autoclose
Finds affected issues and updates them.
autoclose:preview
Finds affected issues and prints them to STDERR
without making any changes.
Endpoints (GET and POST):
sys/autoclose_issues
Finds affected issues and updates them.
sys/autoclose_issues_preview
Finds affected issues and prints them to STDERR
without making any changes.
Note: The API Key is used from the default sys/fetch_changesets
API.
Web service for repositories must by activated in the Administration menu (Administration -
Settings - Repositories - Enable WS for repository management) and the generated API key (referred
to "your service key" in the following documentation) will have to be used by the caller.
To automate the process, there are two options for creating a crontab:
0 1 * * * cd REDMINE_ROOT && bundle exec rake autoclose:autoclose RAILS_ENV=production
0 1 * * * curl -s -X POST -d "key=${REDMINE_API_KEY}" "${REDMINE_URL}/sys/autoclose_issues"
Replace or set REDMINE_URL
and REDMINE_API_KEY
accordingly.