Content
View differences
Updated by Niels Lindenthal over 3 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 not considered as 0 h.
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/47266/content"> 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 for a work package has two values:
* The Progress % for the estimated time of the parent work package itself.
* The Total Progress % that also 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 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 estimated time there is an indicator in the hierarchy sum icon.
* **OPEN**: How does a progress field look like if it is unset (vs. actively setting it to 0%)
## 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/47267/content">
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 not considered as 0 h.
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
* 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 for a work package has two values:
* The Progress % for the estimated time of the parent work package itself.
* The Total Progress % that also 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 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 estimated time there is an indicator in the hierarchy sum icon.
* **OPEN**: How does a progress field look like if it is unset (vs. actively setting it to 0%)
## 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/47267/content">
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">