Content
View differences
Updated by Niels Lindenthal over 2 years ago
**As a** project manager
**I want to** exclude rejected work packages from the calculation of work, remaining work and percentage complete for the parent work packages
**So that I** can clean up my estimates and the progress when rejecting child work packages.
**Acceptance criteria**
* Each work package status can me configured as "exclude from the parent's calculation of completion calculation and work estimates", e.g. for status "rejected".
* Adapt seed data
* Exclude child work packages that have a status that is marked as "excluded from the parent's calculation..." from the calculation of
* Work
* Remaining work
* % complete
* "Excluding" the work package does not change the attributes of Work, Remaining work and % Complete. They are still visible. Reverting the status to another "non-excluded" status includes it in the calculation
* After changing the status the recalculation of the parent work package is triggered
* There is database migration that marks "rejected" status as excluded and recomputes calculated values for work packages using the "rejected" status.
**Out of scope**
* <mention class="mention" data-id="52130" data-type="work_package" data-text="#52130">#52130</mention>
**Open**
1. **CB: If an excluded work package has children, those children are considered excluded as well in the calculation even if they have their own non-excluded status, correct?**
NL: no, if a user wants to exclude grandchildren those grandchildren need to be rejected aswell
2. **CB: When a work package is excluded from calculation, its % Complete should display something different. What about "N/A"?**
NL: no, there might be the case that a work package was started until it is 80% and then rejected. This is an information which is quite interesting to know. We will add a info to the attribut that explains that we want to add an information that indicates that the value is excluded.
3. **CB: The exclusion is effective regardless of having "Calculate work package % Complete with" being set to "work package status" or "work package field", correct?**
NL: The connection between status and percentage is deprecated. We will need to remove first. This is tracked in #52130 ##52130
**I want to** exclude rejected work packages from the calculation of work, remaining work and percentage complete for the parent work packages
**So that I** can clean up my estimates and the progress when rejecting child work packages.
**Acceptance criteria**
* Each work package status can me configured as "exclude from the parent's calculation of completion calculation and work estimates", e.g. for status "rejected".
* Adapt seed data
* Exclude child work packages that have a status that is marked as "excluded from the parent's calculation..." from the calculation of
* Work
* Remaining work
* % complete
* "Excluding" the work package does not change the attributes of Work, Remaining work and % Complete. They are still visible. Reverting the status to another "non-excluded" status includes it in the calculation
* After changing the status the recalculation of the parent work package is triggered
* There is database migration that marks "rejected" status as excluded and recomputes calculated values for work packages using the "rejected" status.
**Out of scope**
* <mention class="mention" data-id="52130" data-type="work_package" data-text="#52130">#52130</mention>
**Open**
1. **CB: If an excluded work package has children, those children are considered excluded as well in the calculation even if they have their own non-excluded status, correct?**
NL: no, if a user wants to exclude grandchildren those grandchildren need to be rejected aswell
2. **CB: When a work package is excluded from calculation, its % Complete should display something different. What about "N/A"?**
NL: no, there might be the case that a work package was started until it is 80% and then rejected. This is an information which is quite interesting to know. We will add a info to the attribut that explains that we want to add an information that indicates that the value is excluded.
3. **CB: The exclusion is effective regardless of having "Calculate work package % Complete with" being set to "work package status" or "work package field", correct?**
NL: The connection between status and percentage is deprecated. We will need to remove first. This is tracked in #52130