Allow percent done to be updated via VCS commit message
Currently, adding time spent entries for an issue doesn't change the percent done field. This means that Gantt charts, etc. don't display the true state of the project until the issue is closed (unless the developer goes in and manually changes the percent done via the web UI (which negates most of the purpose of #4155).
It would be very helpful to be able to specify the percent done in the commit message:
refs #4155 @1.5h 20%
For syntax, I'm imagining something like this regex:
#3 Updated by Eli Stevens over 9 years ago
I have a rough hack in place that lets me do this on our install. It's not polished at all, but it works well enough for us, for now. I'll try and get a patch put together some time this week (I doubt that the patch would ever be accepted into core, but it might work for people that need the feature sooner rather than later).
#5 Updated by Felix Tiede over 6 years ago
Felix Tiede wrote:
I wanted that feature as well and have hacked together a patch to implement it. I have attached a patch which puts this feature to works-for-me.
Since it was late at night here is a short description of what my patch does:
If a changeset comment contains a ticket reference this ticket reference may contain a time specification for time logging and after that a percentage value in steps of ten percent points just like the
%Done ratio dropdown box. This ratio is stored in the referenced issue as well as a journal entry is created. A status change of the referenced issue is not (yet) implemented, I might add a status change from
In Progress in the future.
A value of
100% is allowed but does not set the issue to Closed or Fixed state. Also
0% is currently not allowed. There's also no Setting value to disable this feature and no check whether the done ratio feature is enabled for the issue tracker. While I might be adding a status change feature in the future I will not add any Setting value to enable/disable this.
Anyway I would be glad if this could be integrated into a future version of Redmine.
#6 Updated by Felix Tiede over 6 years ago
- File doneratio.patch added
I tried to setup a complete patch including necessary options in
Admin->Settings as well as status changes based on done ratio in the commit message (100% done ratio does not close issue though). It works as far as I've tested it but lacks proper unit tests as well as localization for most languages in Redmine.
The patch is built against Redmine 2.3.2, I hope it works with other versions as well but have not the means to test.