Feature #42477
closed
Configurable columns for the lists of child and related issues
Added by Jens Krämer about 1 month ago.
Updated 29 days ago.
Description
The attached patch implements a global setting that allows to select which columns (issue attributes) should be rendered in the list of related and sub-issues on issues#show
.
This feature has been previously implemented (with additional configurability on the project level, which we skipped for this patch) by AlphaNodes' redmine_issue_view_columns plugin. At Planio we think that the possibility to configure this on a global level is useful enough to be part of vanilla Redmine, with the option to expand this to the project level once we implement a generalized scheme for such project-specific setting-overrides.
The patch also adds a setting to toggle display of table headers, which may be useful in case ambiguous columns are shown (i.e., multiple date or user fields).
Files
Thank you for submitting the patch that implements the useful feature.
After applying the patch, I observed some test failures. Those errors can be fixed by applying the attached patch on top of the original one.
Failure:
SettingsControllerTest#test_get_edit_should_preselect_default_issue_list_columns [test/functional/settings_controller_test.rb:62]:
Expected exactly 0 elements matching "option[value=tracker]", found 1.
Expected: 0
Actual: 1
bin/rails test test/functional/settings_controller_test.rb:47
Error:
IssuesHelperTest#test_render_issue_relations:
NoMethodError: undefined method `column_content' for an instance of IssuesHelperTest
app/helpers/issues_helper.rb:246:in `block (2 levels) in render_issue_relations'
app/helpers/issues_helper.rb:245:in `each'
app/helpers/issues_helper.rb:245:in `block in render_issue_relations'
app/helpers/issues_helper.rb:220:in `each'
app/helpers/issues_helper.rb:220:in `render_issue_relations'
test/helpers/issues_helper_test.rb:404:in `test_render_issue_relations'
bin/rails test test/helpers/issues_helper_test.rb:397
- Tracker changed from Patch to Feature
- Target version changed from Candidate for next major release to 6.1.0
Setting the target version to 6.1.0.
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the patch in r23596. Thank you for your contribution.
- Related to Defect #41828: In mobile view, delete relation svg icon in 'Related Issues' on an issue page, overflow text added
- Related to Patch #15153: Show more information about subtasks added
Also available in: Atom
PDF