Content
View differences
Updated by Niels Lindenthal almost 4 years ago
### **Environment**:
**OpenProject 12.2 RC**
### Current behavior and steps to reproduce
<img class="op-uc-image op-uc-image_inline" style="width:697px;" src="/api/v3/attachments/36001/content">
[https://niels.openproject-edge.com/projects/progress-calculation-1/work\_packages?query\_id=338](https://niels.openproject-edge.com/projects/progress-calculation-1/work_packages?query_id=338)
1. Unset estimated times are time "-" is currently (12.1) included into the calculation with 8 h. It is almost impossible for users to understand this assumption. It is also not considered as documented.
**Example 1**: The estimated time of _Grandchild 1.1.2_ is 0 h. The algorithm therefore implicitly assumes an estimated time of 8 h. This leads to a Progress % for Child 1.1 of 50 %. Since the estimated time for _Grandchild 1.1.2_ is "0" it must not be included into the progress calculation of Child 1.1.
2. It is not possible to set a percentage % for the estimated time that is defined for a parent work package.
**Example 2**: The estimated time for Child 1.1 itself is 24 h. It is not possible to define Progress % for those 24 h. The shown 50 % is derived from the _Grandchildren 1.1.1_ and _Grandchildren 1.1.2_.
## Expected behavior
Calculation logic: https://nextcloud.openproject.org/index.php/s/j45k7oqPo2R2iot
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/36034/content">
* For the estimated time field it is possible to understand whether a value is empty (not set) or set to 0 h. This allows to better understand if an estimate has been made or not.
* Unset estimated time is included by 0 h into the calculation. calculation (not 8 h).
* It is possible to set the Progress % for the estimated time of a parent work packages.
* The Progress % value calculated for a work package has two values:
* The Progress % for the estimated time of the parent work package itself.
* The Total Progress % that als includes all children work packages.
* When filtering child work packages from the list the value in the bracket remains unchanged. The percentage % for the filtered work packages only includes the values of the filtered work packages. It does not include the values from children values which are filtered out.
* The Progress % of a version is the same as the total progress when filtering for all work packages indicated in this version. It also does not include children work packages from other versions.
* Optional: for parent work packages that have a children work package with unset brackets (similar to estimated time there is an indicator in the hierarchy sum icon. time).
## Visuals
[https://www.figma.com/file/iVzhExjBr2fmOpYTEwYZYU/Progress-representation?node-id=9%3A5459](https://www.figma.com/file/iVzhExjBr2fmOpYTEwYZYU/Progress-representation?node-id=9%3A5459)
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/36689/content">
## Alternative concepts
Work packages that has children get their estimated time automatically calculated from this ones and can't have an own estimate. Adding a subtask deletes the values entered for the summary task.
<img class="op-uc-image op-uc-image_inline" style="width:772px;" src="/api/v3/attachments/36015/content">
**OpenProject 12.2 RC**
### Current behavior and steps to reproduce
<img class="op-uc-image op-uc-image_inline" style="width:697px;" src="/api/v3/attachments/36001/content">
[https://niels.openproject-edge.com/projects/progress-calculation-1/work\_packages?query\_id=338](https://niels.openproject-edge.com/projects/progress-calculation-1/work_packages?query_id=338)
1. Unset estimated times are
**Example 1**: The estimated time of _Grandchild 1.1.2_ is
2. It is not possible to set a percentage % for the estimated time that is defined for a parent work package.
**Example 2**: The estimated time for Child 1.1 itself is 24 h. It is not possible to define Progress % for those 24 h. The shown 50 % is derived from the _Grandchildren 1.1.1_ and _Grandchildren 1.1.2_.
## Expected behavior
Calculation logic: https://nextcloud.openproject.org/index.php/s/j45k7oqPo2R2iot
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/36034/content">
* For the estimated time field it is possible to understand whether a value is empty (not set) or set to 0 h. This allows to better understand if an estimate has been made or not.
* Unset estimated time is included by 0 h into the calculation.
* It is possible to set the Progress % for the estimated time of a parent work packages.
* The Progress % value
* The Progress % for the estimated time of the parent work package itself.
* The Total Progress % that als includes all children work packages.
* When filtering child work packages from the list the value in the bracket remains unchanged. The percentage % for the filtered work packages only includes the values of the filtered work packages. It does not include the values from children values which are filtered out.
* The Progress % of a version is the same as the total progress when filtering for all work packages
* Optional: for parent work packages that have a children work package with unset
## Visuals
[https://www.figma.com/file/iVzhExjBr2fmOpYTEwYZYU/Progress-representation?node-id=9%3A5459](https://www.figma.com/file/iVzhExjBr2fmOpYTEwYZYU/Progress-representation?node-id=9%3A5459)
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/36689/content">
## Alternative concepts
Work packages that has children get their estimated time automatically calculated from this ones and can't have an own estimate. Adding a subtask deletes the values entered for the summary task.
<img class="op-uc-image op-uc-image_inline" style="width:772px;" src="/api/v3/attachments/36015/content">