# Feature SPAR-87 - Indicate which fields are automatically derived and why in progress pop over

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

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_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 | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Build Number |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Christophe Bliard |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** a user updating work, remaining work, and/or % Complete for a work package  
**I want to** better understand why and how some fields are automatically updated when I change values in the progress popover  
**so that** I am less confused about what is going on and I can feel in control

**Proposed solution**

In the popover modal, whenever a field is automatically updated due to changes to the other fields, add a descriptive text below it to indicate what lead to the value being automatically derived.

Example:

When changing work from 40h to 50h, indicates that remaining work is also increased by 10h and that % complete is recomputed

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/137650/content">

**Acceptance criteria**

  - In work-based mode
    
      - The text "Note: Each field is automatically calculated from the two others when possible. Learn more" is removed
    
      - Work
        
          - Display "Derived from Remaining work and % Complete." when calculated from remaining work and % complete
        
          - Display "Cleared because Remaining work is empty." when remaining work is unset and % Complete is set
        
          - Display "Set to same value as Remaining work." when work, remaining work, and % complete are initially unset and remaining work is being set
    
      - Remaining work
        
          - This one has a lot of cases
        
          - Display "Derived from Work and % Complete." when work and % complete have been set
        
          - Display "Set to same value as Work." when work, remaining work, and % complete are initially unset and work is being set
        
          - Display "Increased by the same amount as Work." or "Decreased by the same amount as Work." when work and remaining work are initially set, and work is changed.
        
          - Display "Cleared because Work is empty." when that's the case
        
          - Display "Cleared because % Complete is empty." when that's the case
    
      - % Complete
        
          - Display "Derived from Work and Remaining work." when work and remaining work have been set
        
          - Display "Cleared because Work is 0h." when work is 0h
        
          - Display "Cleared because Remaining work is empty." when remaining work is unset and work is still set

  - In status-based mode
    
      - Work
        
          - is always set by the user
    
      - Remaining work
        
          - Display "Derived from Work and % Complete." whenever work or status is changed and work is set
        
          - Display "Cleared because Work is empty." whenever work was set and is unset

**Questions**

In order to display more information to the user:

  - Should we display "initial value" when value is the initial one
    
      - It could help in the following scenario:  
        All fields are initially set. When work is unset, remaining work gets unset as well, but when unsetting % Complete as well, the remaining work value comes back. It could be confusing. Showing "initial value" below could help understand it has been kept.  
        <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/137660/content">

  - Should we display "set by user" when the value has been modified, even if set to the same value?
    
      - It could help in the following (contrived) scenario:  
        All fields are initially set. The user unsets work, then changes their mind and restore the value back to its initial value. Then the user changes remaining work and % complete, but an error is displayed. I could be confusing because the user may expect the work value to be updated. Showing a "set by user" below could help understand that they set all 3 fields and it is in an incorrect state.  
        <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/137663/content">
