# Feature SPAR-20 - Work package "Done ratio" calculation of parent work package

Project: Stream Planning and Reporting
Status: new
URL: https://community.openproject.org/work_packages/SPAR-20

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Votes | 1 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

Have a new option to "Calculate the work package done ratio with" setting in Administration \> "Work package tracking".

The new option "Use the children work packages status" allows the calculation of the progress of a work package with the following behaviour:

  - progress of a *WP without any children* is determined by its status done ratio
  - progress of a *WP with children* is determined by the progress of its children

### **Expected behaviour:**

1.  Add P work package as parent
2.  Add A, B, C and D work packages as children of P.
3.  Done ratio of all the work packages is 0%.
4.  Close work package A -\> Done ratio of P gets 25%
5.  Close work package B -\> Done ratio of P gets 50%
6.  Close work package P -\> Done ratio of P does not change (still 50%)

Inspired from <mention class="mention" data-id="36160" data-type="work_package" data-text="#36160">#36160</mention>
