Content
View differences
Updated by Niels Lindenthal about 14 hours ago
### Steps to reproduce
1. Add a custom field of type `Text` to a work package variant.
2. Enter a text longer than 255 256 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.
* Long text values span multiple lines in the work package detail view.
* The display and editing behavior is inconsistent.
### What is the expected behavior?
* Text custom fields have a maximum length of 255 256 characters.
* Users cannot save text custom field values exceeding 255 256 characters.
* Migration strategy:
* Existing values exceeding 255 256 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
### Screenshots
#### input form:
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/926771/content"></div><figcaption class="op-uc-figure--description">The default length is 0, which means unlimited</figcaption></figure>
<br>
#### Work package detail view:
###
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/926775/content">
#### Work package detail view in input mode
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/926778/content"></div><figcaption class="op-uc-figure--description">When clicked, the representation switches back to single line input</figcaption></figure>
#### Work package list
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/926780/content"></div><figcaption class="op-uc-figure--description">The work package list shows the long plain text truncated</figcaption></figure>
<br>
<br>
<br>
###
### Environment information
This is happening in all environments.
<br>
1. Add a custom field of type `Text` to a work package variant.
2. Enter a text longer than 255
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.
* Long text values span multiple lines in the work package detail view.
* The display and editing behavior is inconsistent.
### What is the expected behavior?
* Text custom fields have a maximum length of 255
* Users cannot save text custom field values exceeding 255
* Migration strategy:
* Existing values exceeding 255
* Converting a text custom field to a long text field is irreversible
#### input form:
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/926771/content"></div><figcaption class="op-uc-figure--description">The default length is 0, which means unlimited</figcaption></figure>
<br>
#### Work package detail view:
###
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/926775/content">
#### Work package detail view in input mode
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/926778/content"></div><figcaption class="op-uc-figure--description">When clicked, the representation switches back to single line input</figcaption></figure>
#### Work package list
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/926780/content"></div><figcaption class="op-uc-figure--description">The work package list shows the long plain text truncated</figcaption></figure>
<br>
<br>
<br>
###
### Environment information
This is happening in all environments.
<br>