# Feature OP-15337 - Introduce a "duration" custom field type

Project: OpenProject
Status: specified
URL: https://community.openproject.org/work_packages/OP-15337

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Product Backlog |
| Sprint |  |
| Backlog bucket |  |
| Votes | 2 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_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 |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| 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** an OpenProject administrator  
**I want to** give my users the possibility to create custom fields able to accept duration information  
**so that** they are able to track, sum, filter and sort by custom durations

**Acceptance criteria**

In Administration → Custom fields → New custom field or in edit page,

  - Add a new format named "Duration",

  - Include these options:
    
      - Mininum (hours)
    
      - Maximum (hours)
    
      - Default value
    
      - Required
    
      - For all projects
    
      - Use as filter

  - Users are able to sum, filter and sort these values in work package list view

  - The setting for displaying duration (in hours only or hours and days, for example) will apply Duration custom fields too.
    
      - Feature: <mention class="mention" data-id="55997" data-type="work_package" data-text="###55997">###55997</mention>
