Project

General

Profile

Actions

Feature #7376

open

Allow percent done to be updated via VCS commit message

Added by Eli Stevens almost 14 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2011-01-19
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

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:

' +(100|[1-9]?[0-9])%'

Files

changeset.diff (2.02 KB) changeset.diff Felix Tiede, 2013-11-26 00:39
doneratio.patch (6.23 KB) doneratio.patch Set issue done ratio from commit message as proposed in initial feature request. Felix Tiede, 2013-11-26 19:58
Actions #1

Updated by Toshi MARUYAMA almost 14 years ago

  • Category set to SCM
Actions #2

Updated by Anonymous almost 14 years ago

I'm very interested in this as well. If we could get this implemented, it would definitely help us provide better status reporting (we wouldn't have to simply hope that the developers will actually log in to the site every day and provide updates)

Actions #3

Updated by Eli Stevens almost 14 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).

Actions #4

Updated by Felix Tiede almost 11 years ago

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.

Actions #5

Updated by Felix Tiede almost 11 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 New to 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.

Actions #6

Updated by Felix Tiede almost 11 years ago

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.

Actions #7

Updated by Daniele Pedroni over 10 years ago

+1
Useful feature, my team asked for it several times!
Hope it will be considered for integration in Redmine core.

Actions #8

Updated by loomy lumenstein over 9 years ago

+1 from me

Actions

Also available in: Atom PDF