# Feature OP-20747 - Enforce max length of of 'Text' fields and rename them to 'Short text'

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-20747

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Low |
| Target versions | 18.1.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| 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 | Administration / Custom fields, Modules and project features / Work packages, Administration / Work package administration |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

### Steps to reproduce

1.  Add a custom field of type `Text` to a work package variant.
    
2.  Enter a text longer than 255 characters.
    
3.  Save the work package.
    
4.  Observe that the text spans multiple lines in the work package detail view.
    
5.  Click the field to edit it. The input is displayed as a single-line field.
    
6.  Open the work package table. The text is displayed in truncated form.
    

### What is the buggy behavior?

*   Text custom fields allow users to enter an unlimited number of characters, although they are intended for single-line input.
    

### What is the expected behavior?

*   Text custom fields have a maximum length of 255 characters.
    
*   Users cannot save text custom field values exceeding 255 characters.
    
*   Migration strategy:
    
    *   Existing values exceeding 255 characters remain unchanged and can still be displayed.
        
    *   Invalid text custom field values do not prevent changes to other attributes from being saved. So it is possible to change the subject even though the text in the field is longer than 255 chars.
        
    *   Admins can manually convert text custom fields to long text fields.
        
    *   Admins can not convert a long text field to a text field.
        
    *   Converting a text custom field to a long text field is irreversible
        

###
