# Bug OP-15182 - Progress units: Display Work and Remaining work in days and hours

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15182

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 14.2.0 |
| Observed in versions |  |
| Sprint | 14.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | Yes |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

**Context**

The input and display of *Work* and *Remaining work* in multiple units were introduced in <mention class="mention" data-id="50954" data-type="work_package" data-text="###50954">###50954</mention>.

However, after a review of the feature with <mention class="mention" data-id="3" data-type="user" data-text="@Niels Lindenthal">@Niels Lindenthal</mention> and <mention class="mention" data-id="74738" data-type="user" data-text="@Christophe Bliard">@Christophe Bliard</mention>, we decided that the current implementation doesn't quite work because of some of the UX around legibility, visual noise, alignment and available space (column width).

As a result, we decided to simplify the feature for 14.2 to display these values in only days and hours.

**Acceptance criteria**

  - In the work package table: 
    
      - Display *Work* and *Remaining work* in days and hours
        
          - For values ≤ 7h, display only hours (format: "5h")
            
              - For less than full hours, display them in decimals ("4.5h for 4 hours, 30 minutes") as before
        
          - For 1 day, display "1d 0h"
        
          - For any larger value, use format: 8d 4h
    
      - The "hour" values in each column will be aligned, since all values in end "h"
    
      - Do not display other units (months, week, minutes, seconds)

  - This will also apply to the work package details view

  - In admin settings for "Working days and hours":
    
      - Remove options for:
        
          - Days per week
        
          - Days per month
    
      - We can reintroduce these when we also reintroduce the posibility to display these units in the UI (the code is preserved).

  - Modal input in multiple units: leave as is (this is a pro feature for advanced users, doesn't both other users)
