Project

General

Profile

Actions

Patch #4274

closed

Use Issue status for percent done

Patch #4274: Use Issue status for percent done

Added by Eric Davis almost 17 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues
Target version:

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 4 (3 open — 1 closed)

Related to Redmine - Feature #952: Update % to be programatic not arbitraryNewActions
Related to Redmine - Feature #2561: Correlate workflow with Issue complete percentageNewActions
Related to Redmine - Feature #4015: Make app settings overridable at project levelNewActions
Has duplicate Redmine - Feature #5079: Link a completed percentage to an issue statusClosedActions

Updated by Jean-Philippe Lang almost 17 years ago Actions #1

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.

Updated by Eric Davis almost 17 years ago Actions #2

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.

Updated by Shane Pearlman almost 17 years ago Actions #3

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

Updated by Eric Davis almost 17 years ago Actions #4

  • 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.

Updated by Nanda P almost 17 years ago Actions #5

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

Updated by Felix Schäfer almost 17 years ago Actions #6

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.

Updated by Nanda P almost 17 years ago Actions #7

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.

Updated by Nicklas Holm almost 17 years ago Actions #8

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.

Updated by Mischa The Evil almost 17 years ago Actions #9

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...

Updated by Nanda P almost 17 years ago Actions #10

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 :)

Updated by Alexey Palazhchenko almost 17 years ago Actions #11

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?

Updated by Bruno Medeiros over 16 years ago Actions #12

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

Updated by Tharuka Pathirana over 16 years ago Actions #13

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.

Updated by Felix Schäfer over 16 years ago Actions #14

Try it out and amend the wiki :-)

Updated by Tharuka Pathirana over 16 years ago Actions #15

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

Updated by Mischa The Evil over 16 years ago Actions #16

Tharuka Pathirana wrote:

Well, I did... ;)

Here and here.

Thanks for your help... :)

Updated by Chuck H almost 16 years ago Actions #17

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.

Updated by Thomas Robbs about 14 years ago Actions #18

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.

Updated by Toshi MARUYAMA almost 14 years ago Actions #19

  • Assignee deleted (Eric Davis)

Updated by Toshi MARUYAMA almost 14 years ago Actions #20

  • Assignee set to Eric Davis

Updated by Uuganbayar Battulga over 8 years ago Actions #21

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

Updated by Bernhard Rohloff over 8 years ago Actions #22

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: PDF Atom