Content
View differences
Updated by Christophe Bliard almost 2 years ago
**Context**
Users have complained about losing data when switching from Work- to Status-based progress calculation:
* Existing % Complete values are overwritten by status (or set to 0 when a corresponding value does not exist)
* Remaining work is automatically updated (#55371)
This warning banner (displayed only when a _different_ mode than current is selected) aims to give admins a fair warning of these irreversible changes.
**Acceptance criteria**
* In _Administration → Work packages → Settings,_ show a warning when an administrator changes the selection in the 'Progress calculation' drop-down (on change, before save)
* When going from 'Work-based' to 'Status-based', it should read:
* "Changing progress calculation mode from work-based to status-based will result in all existing _% Complete_ values to be lost and replaced with values associated with each status. Existing values for _Remaining work_ may also be recalculated to reflect this change. This action is not reversible."
* When going from 'Status-based' 'Work-based' to 'Work-based', 'Status-based', it should read:
* "Changing progress calculation mode from status-based to work-based will make _% Complete_ a non-editable field whose value derived is from _Work_ and _Remaining work._ Existing values for _% Complete_ are preserved. If values for _Work_ and _Remaining work_ were not present, they will be required in order to change _% Complete_."
**Visuals**
_Changing from Work- to Status-based:_
<img class="image_resized op-uc-image op-uc-image_inline" style="width:881px;" src="/api/v3/attachments/105662/content">
_Changing from Status- to Work-based:_
<img class="image_resized op-uc-image op-uc-image_inline" style="width:886px;" src="/api/v3/attachments/105663/content">
Users have complained about losing data when switching from Work- to Status-based progress calculation:
* Existing % Complete values are overwritten by status (or set to 0 when a corresponding value does not exist)
* Remaining work is automatically updated (#55371)
This warning banner (displayed only when a _different_ mode than current is selected) aims to give admins a fair warning of these irreversible changes.
**Acceptance criteria**
* In _Administration → Work packages → Settings,_ show a warning when an administrator changes the selection in the 'Progress calculation' drop-down (on change, before save)
* When going from 'Work-based' to 'Status-based', it should read:
* "Changing progress calculation mode from work-based to status-based will result in all existing _% Complete_ values to be lost and replaced with values associated with each status. Existing values for _Remaining work_ may also be recalculated to reflect this change. This action is not reversible."
* When going from 'Status-based'
* "Changing progress calculation mode from status-based to work-based will make _% Complete_ a non-editable field whose value derived is from _Work_ and _Remaining work._ Existing values for _% Complete_ are preserved. If values for _Work_ and _Remaining work_ were not present, they will be required in order to change _% Complete_."
**Visuals**
_Changing from Work- to Status-based:_
<img class="image_resized op-uc-image op-uc-image_inline" style="width:881px;" src="/api/v3/attachments/105662/content">
_Changing from Status- to Work-based:_
<img class="image_resized op-uc-image op-uc-image_inline" style="width:886px;" src="/api/v3/attachments/105663/content">