Automatic task closure

Added by Александр Майстришин 4 months ago

Hello! I apologize for bad English, please tell me, can anyone come across and have experience solving this problem, it is necessary if a task with a certain status is open for a certain number of days to change the status automatically and the author receives a letter about the change of status.
Are there any solutions?

Replies (1)

RE: Automatic task closure - Added by Mayama Takeshi 4 months ago

Hi,
maybe this functionality already exists in Redmine.
But if not you could use
https://python-redmine.com/
and write a script that you can set up to be executed periodically.
Here is an example:
https://gist.github.com/MayamaTakeshi/68c3436a58c1d6ecb8558657a2d0da65

Suppose that you have a status named 'hold' and you want to change any issue that is in status 'in progress' that hasn't been updated for more than 30 days to this status. Then you would call it like this:

$ ./update_old_issues.py 30 'in progress' hold
Updating #21 (test) status from 'in progress' to 'hold'
Finished (total updated: 1)

The author would be notified by Redmine via email due status change.

(1-1/1)