Vote #77094
完了Option for long text custom fields to be displayed using full width
0%
説明
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:
Testing Steps¶
Release Notes¶
Acceptance Criteria¶
Issue page now only with first 2 fields:
!default.png!
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.
!under_desc.png!
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.
journals
I've updated the patch with two changes:
# add missing class "attribute" to custom field div
# 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.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
This is one of those features that I didn't know I needed it until I saw it. This is very useful. Thanks Marius.
--------------------------------------------------------------------------------
+1 ... plz can be this merger to production?
--------------------------------------------------------------------------------
Passed all tests. Looks good to me.
I hope this feature will be included in 3.4.0.
--------------------------------------------------------------------------------
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)
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Please change overflow to auto (see #3543#note-20)
--------------------------------------------------------------------------------
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.
!21705-table-overflow.png!
--------------------------------------------------------------------------------
Thanks for reopening. I add another patch fixing PDF formatting.
--------------------------------------------------------------------------------
Both patches committed, thanks.
--------------------------------------------------------------------------------
@Marius BALTEANU: can you maybe take a look at #26081. It still needs work, but I think it could be a nice improvement on top of this issues' feature.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Mischa The Evil wrote:
> @Marius BALTEANU: can you maybe take a look at #26081. It still needs work, but I think it could be a nice improvement on top of this issues' feature.
Agree with you, I'll try to create a patch this month.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,3543,Improve 'long text' custom fields
relates,Closed,25052,Allow to disable description field in tracker setting
relates,Closed,26081,Allow full_width_layout long-text custom fields to appear in the issue list like 'Description' (as a block column)
relates,Closed,28085,Wiki Toolbar on Full Width Custom Fields
relates,Closed,35195,Long Text label name is not displayed
duplicates,Closed,10021,Enhanced Large Text Field for Issues
duplicates,Closed,19122,Layout problems for long text custom fields
duplicates,Closed,8447,support for custom fields to be structured like description field