Project

General

Profile

Actions

Patch #13400

open

Calculate %done based on estimated and logged time

Added by Holger Just over 11 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues planning
Start date:
Due date:
% Done:

0%

Estimated time:

Description

One of our customers at Planio requested to have the %done field calculated based on estimated and logged time. This patch is extracted from the Planio code base.

If enabled, it calculated the percent done according to these rules:

  • if estimated time is set: logged_time / estimated_time
    • the number is never higher than 100%, even if logged_time > estimated_time
  • if estimated_time is not set: 0

Logged and estimated times of child issues are taken into account, similarly to the way it is done when using the issue status. If a user logs/modifies/deletes time, it creates a journal entry of the changed %done on the affected issue. It will not create journals on parent issues that might also be updated.

The patch is attached.


Files


Related issues

Related to Redmine - Feature #12762: Add option to calculate done ratio with the data from time trackingNew

Actions
Related to Redmine - Feature #24277: Introducing Remaining Time field as method to track the remaining time to complete an issueNew

Actions
Actions

Also available in: Atom PDF