Project

General

Profile

Actions

Patch #4274

closed

Use Issue status for percent done

Added by Eric Davis about 15 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues
Target version:
Start date:
2009-11-23
Due date:
% Done:

100%

Estimated time:

Description

This patch adds an option which will automatically update an issue's done ratio based on which issue status is assigned. It's an optional setting (default off) in the Admin > Settings > Issue Tracking tab.

This is ready to commit pending code review.

Designed and sponsored by Shane and Peter Inc.


Files


Related issues

Related to Redmine - Feature #952: Update % to be programatic not arbitraryNew2008-03-29

Actions
Related to Redmine - Feature #2561: Correlate workflow with Issue complete percentageNew2009-01-22

Actions
Related to Redmine - Feature #4015: Make app settings overridable at project levelNew2009-10-10

Actions
Has duplicate Redmine - Feature #5079: Link a completed percentage to an issue statusClosed2010-03-15

Actions
Actions #1

Updated by Jean-Philippe Lang about 15 years ago

I think there could be a setting for percent done management:
  • manual (current behaviour)
  • issue status (this ticket)
  • spent hours vs. estimate (#952)

With #4015, it could be a per project setting.

Actions #2

Updated by Eric Davis about 15 years ago

I could covert this feature's setting (issue_status_for_done_ratio) from a boolean to a select field. Then when #952 is implemented, it could become the third option.

Actions #3

Updated by Shane Pearlman about 15 years ago

I'm a fan of Jean-Phillipe's suggestion. The project level override is extremely important for the way we use this feature.

Actions #4

Updated by Eric Davis about 15 years ago

  • Status changed from 7 to Closed
  • Target version set to 0.9.0
  • % Done changed from 0 to 100

I changed the setting to use a list of options and committed this in r3151. #952 should be easy for someone to implement.

Actions #5

Updated by Nanda P about 15 years ago

Eric,

I pulled trunk version (Redmine 0.8.7.devel.3171 (MySQL))

I couldn't see the % Done option. I checked the datatabase, I can see the new field "default_done_ratio" in issue_statuses table with NULL.

Is there any settings to enable this option?

Regards,
Nanda

Actions #6

Updated by Felix Schäfer about 15 years ago

Nanda Palaniswamy wrote:

Is there any settings to enable this option?

You have to click on each status, and in the status configuration, you have a list from which you can choose what percent done corresponds to this status.

Actions #7

Updated by Nanda P about 15 years ago

Felix,

Thanks for your response.

When I click a status to update it, I don't see the "Percent Done" field..

here is a screen shot.

Actions #8

Updated by Nicklas Holm about 15 years ago

Nanda Palaniswamy wrote:

Felix,

Thanks for your response.

When I click a status to update it, I don't see the "Percent Done" field..

here is a screen shot.

You will have to go to the "Issue tracking" tab in the admin settings and set "Calculate the issue done ratio with" to "Use the issue status". Now you will have an extra field.

Actions #9

Updated by Mischa The Evil about 15 years ago

Also note that when "Calculate the issue done ratio with" is set to "Use the issue status" any user is not able any longer to update the issue done ratio manually since the field isn't displayed on issue new/edit forms. The ratio is strictly set automatically depending on the issue status.

Off-topic: I must admit I really like the way how Eric has implemented this feature... Though it's a personal preference...

Actions #10

Updated by Nanda P about 15 years ago

Nicklas Holm wrote:

Nanda Palaniswamy wrote:

Felix,

Thanks for your response.

When I click a status to update it, I don't see the "Percent Done" field..

here is a screen shot.

You will have to go to the "Issue tracking" tab in the admin settings and set "Calculate the issue done ratio with" to "Use the issue status". Now you will have an extra field.

Nicklas:

After setting "Use the issue status" it working like a charm!!

Thanks a Lot :)

Actions #11

Updated by Alexey Palazhchenko almost 15 years ago

I think it will be nice to implement mixed behavior. For example, I want "New" status be fixed to 0% and "Resolved" status to 100%, but I want to have a possibility to specify percentage for "In progress" status. Should I extract this feature request into new ticket?

Actions #12

Updated by Bruno Medeiros over 14 years ago

Good idea, Aleksey!
Avoid user to set manually the status is not needed to this feature to work.

Actions #13

Updated by Tharuka Pathirana over 14 years ago

Leaving the "% Done" for a status empty: Does it mean it doesn't change regardless what the percentage was before the status change or does it mean that the percentage is set to empty?
Unfortunately there is no information about this in the wiki yet.

Actions #14

Updated by Felix Schäfer over 14 years ago

Try it out and amend the wiki :-)

Actions #15

Updated by Tharuka Pathirana over 14 years ago

Well, I did... ;)
Here and here.

Actions #16

Updated by Mischa The Evil over 14 years ago

Tharuka Pathirana wrote:

Well, I did... ;)

Here and here.

Thanks for your help... :)

Actions #17

Updated by Chuck H about 14 years ago

I am running RedMine v1.0.2 on a Windows server and I would like to implement this patch but I have no idea how. Can someone please point me to some documentation on how to implement this patch file.

Actions #18

Updated by Thomas Robbs about 12 years ago

I want to use this setting, but I have to reluctantly because it affects all projects.

Can this be "fixed", such that it can be implemented at the project, tracker, [other?] levels setting vs. just at the application level settings?

See also #4015.

Actions #19

Updated by Toshi MARUYAMA about 12 years ago

  • Assignee deleted (Eric Davis)
Actions #20

Updated by Toshi MARUYAMA about 12 years ago

  • Assignee set to Eric Davis
Actions #21

Updated by Uuganbayar Battulga almost 7 years ago

Hi Jean-Philippe Lang,
This is a very useful thing, it can not be inserted into redmine core system

Actions #22

Updated by Bernhard Rohloff almost 7 years ago

Uuganbayar Battulga wrote:

Hi Jean-Philippe Lang,
This is a very useful thing, it can not be inserted into redmine core system

What exactly would you like to see in Redmine? This particular feature was integrated 8 years ago so it is part of Redmine's core system already.

Actions

Also available in: Atom PDF