Patch #4274

Use Issue status for percent done

Added by Eric Davis about 8 years ago. Updated about 5 years ago.

Status:ClosedStart date:2009-11-23
Priority:NormalDue date:
Assignee:Eric Davis% Done:

100%

Category:Issues
Target version:0.9.0

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.

0001-Adds-an-option-which-will-automatically-update-an-is.patch Magnifier (44 KB) Eric Davis, 2009-11-23 23:43

issue-status-for-percent-done.png (31.9 KB) Eric Davis, 2009-11-23 23:43

RedMine_IssueStatuses.jpg (17.6 KB) Nanda P, 2009-12-14 15:33

RedMine_IssueStatuses_1.jpg (8.81 KB) Nanda P, 2009-12-14 15:58


Related issues

Related to Redmine - Feature #952: Update % to be programatic not arbitrary New 2008-03-29
Related to Redmine - Feature #2561: Correlate workflow with Issue complete percentage New 2009-01-22
Related to Redmine - Feature #4015: Make app settings overridable at project level New 2009-10-10
Duplicated by Redmine - Feature #5079: Link a completed percentage to an issue status Closed 2010-03-15

Associated revisions

Revision 3151
Added by Eric Davis almost 8 years ago

Adds a Setting to control how an Issue's done_ratio is calculated:

  • Issue field (default) - the done_ratio field for the Issue
  • Issue status - uses the Issue Status's value

    #4274

History

#1 Updated by Jean-Philippe Lang almost 8 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.

#2 Updated by Eric Davis almost 8 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.

#3 Updated by Shane Pearlman almost 8 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.

#4 Updated by Eric Davis almost 8 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.

#5 Updated by Nanda P almost 8 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

#6 Updated by Felix Schäfer almost 8 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.

#7 Updated by Nanda P almost 8 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.

#8 Updated by Nicklas Holm almost 8 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.

#9 Updated by Mischa The Evil almost 8 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...

#10 Updated by Nanda P almost 8 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 :)

#11 Updated by Alexey Palazhchenko almost 8 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?

#12 Updated by Bruno Medeiros over 7 years ago

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

#13 Updated by Tharuka Pathirana over 7 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.

#14 Updated by Felix Schäfer over 7 years ago

Try it out and amend the wiki :-)

#15 Updated by Tharuka Pathirana over 7 years ago

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

#16 Updated by Mischa The Evil over 7 years ago

Tharuka Pathirana wrote:

Well, I did... ;)

Here and here.

Thanks for your help... :)

#17 Updated by Chuck H almost 7 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.

#18 Updated by Thomas Robbs about 5 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.

#19 Updated by Toshi MARUYAMA about 5 years ago

  • Assignee deleted (Eric Davis)

#20 Updated by Toshi MARUYAMA about 5 years ago

  • Assignee set to Eric Davis

Also available in: Atom PDF