Patch #21705

Option for long text custom fields to be displayed using full width

Added by Marius BALTEANU over 1 year ago. Updated about 1 month ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Custom fields
Target version:3.4.0

Description

There are many cases when the long text custom fields can contain a lot of text that makes the issue page view not so friendly for the users. For example, in our company, we have 3 fields with a lot of text:
  1. Testing Steps
  2. Release Notes
  3. Acceptance Criteria

Issue page now only with first 2 fields:

The attached patch add a new option called show_under_description for long text custom fields that if is checked, render that fields under the description field.

If you find this change useful, I can add tests to the patch. Also, any feedback regarding the patch or this functionality is welcome.

I think that this issue is related to #3543, but with another implementation.

under_desc.png (337 KB) Marius BALTEANU, 2016-01-12 22:29

default.png (377 KB) Marius BALTEANU, 2016-01-12 22:29

option_to_show_fields_under_description.patch Magnifier (5.61 KB) Marius BALTEANU, 2016-01-12 22:39

option_to_show_fields_under_description_v2.patch Magnifier (6.89 KB) Marius BALTEANU, 2016-01-19 18:46

option_to_show_issue_custom_fields_on_full_width.patch Magnifier (19.6 KB) Marius BALTEANU, 2016-12-29 16:01

overflow.patch Magnifier (702 Bytes) Greg T, 2017-02-17 12:38

21705-table-overflow.png (60.5 KB) Go MAEDA, 2017-02-18 04:48

pdf_custom_field.patch Magnifier (559 Bytes) Greg T, 2017-02-20 11:07


Related issues

Related to Redmine - Feature #3543: Improve 'long text' custom fields Closed 2009-06-25
Related to Redmine - Feature #25052: Allow to disable description field in tracker setting Closed
Duplicated by Redmine - Feature #10021: Enhanced Large Text Field for Issues Closed
Duplicated by Redmine - Patch #19122: Layout problems for long text custom fields Closed
Duplicated by Redmine - Feature #8447: support for custom fields to be structured like descripti... Closed 2011-05-26

Associated revisions

Revision 16251
Added by Jean-Philippe Lang 3 months ago

Option for long text custom fields to be displayed under the description field (#21705).

Based on patch by Marius BALTEANU.

Revision 16253
Added by Jean-Philippe Lang 3 months ago

Adjust rendering of custom fields in PDF (#21705).

Revision 16255
Added by Toshi MARUYAMA 3 months ago

generate i18n keys (#21705)

Revision 16257
Added by Jean-Philippe Lang 3 months ago

Omit blank fields as we do for the description (#21705).

Revision 16258
Added by Jean-Philippe Lang 3 months ago

Omit blank fields in PDF too (#21705).

Revision 16362
Added by Jean-Philippe Lang about 1 month ago

Fix PDF formatting (#21705).

Patch by Greg T.

Revision 16363
Added by Jean-Philippe Lang about 1 month ago

Changes overflow to auto (#21705).

Patch by Greg T.

History

#1 Updated by Marius BALTEANU over 1 year ago

I've updated the patch with two changes:
  1. add missing class "attribute" to custom field div
  2. wrap the value of the custom fields which text formatting enabled in DIV with wiki class

The patch was tested against 3.2.0.stable.15067 and doesn't break any test from my checks.

#2 Updated by Toshi MARUYAMA about 1 year ago

  • Related to Feature #3543: Improve 'long text' custom fields added

#3 Updated by Marius BALTEANU 4 months ago

New version of the patch:
- renamed the custom field setting from "show under description" to "full width layout" (I wasn't able to find a better name)
- the setting "full width layout" applies in both views: show and edit issue.
- the option is now displayed only for "Issues custom fields" of type "Long text"
- added tests
- some refactoring.

There are some users in the related ticket (#3543) which require to have this feature implemented so any feedback is welcome.

#4 Updated by Kush Suryavanshi 4 months ago

This is one of those features that I didn't know I needed it until I saw it. This is very useful. Thanks Marius.

#5 Updated by Maxim Krušina 4 months ago

+1 ... plz can be this merger to production?

#6 Updated by Go MAEDA 4 months ago

  • Target version set to 3.4.0

Passed all tests. Looks good to me.
I hope this feature will be included in 3.4.0.

#7 Updated by Maxim Krušina 4 months ago

PS: there is also plugin: - latest fork: https://github.com/mi-yo/redmine_multi_column_custom_fields
but it has some issues (not 100% style, in edit mode the field is still just 1-column)

#8 Updated by Jean-Philippe Lang 3 months ago

  • Subject changed from Option for long text custom fields to be displayed under the description field to Option for long text custom fields to be displayed using full width
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Patch is committed with some changes (custom field store was used instead of adding a column for the setting). The PDF output was modified as well.

#9 Updated by Go MAEDA 3 months ago

  • Duplicated by Feature #10021: Enhanced Large Text Field for Issues added

#10 Updated by Go MAEDA 3 months ago

  • Duplicated by Patch #19122: Layout problems for long text custom fields added

#11 Updated by Go MAEDA 3 months ago

  • Duplicated by Feature #8447: support for custom fields to be structured like description field added

#12 Updated by Go MAEDA 3 months ago

  • Related to Feature #25052: Allow to disable description field in tracker setting added

#13 Updated by Greg T 2 months ago

Please change overflow to auto (see #3543#note-20)

#14 Updated by Go MAEDA 2 months ago

Greg T wrote:

Please change overflow to auto (see #3543#note-20)

This is a screenshot of the issue reported by Greg T. Tables are displayed in a different appearance in description field and custom field.

#15 Updated by Greg T 2 months ago

Thanks for reopening. I add another patch fixing PDF formatting.

#16 Updated by Jean-Philippe Lang about 1 month ago

  • Status changed from Reopened to Closed

Both patches committed, thanks.

Also available in: Atom PDF