Feature to Group Custom Fields by Category
Added by philippe lhardy about 1 year ago
This feature is to enhance custom fields with a category that will be used to group all custom fields within a single table/frame for a very same category at display.
Context of developement : This is a request from a customer. I am starting working on that feature and will be paid for. Our customer want this to be done as a classical open source improvment, so this will be proposed to bug tracker and when officialy released upgrade will be done from redmine.
What is the best way to proceed ? Is there any existing pending feature or plugin related to this ?
Replies (14)
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy about 1 year ago
I did create a Feature issue for this : https://www.redmine.org/issues/39530
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy about 1 year ago
Of course first start is to read existing documentation on custom fields ;-) ( https://www.redmine.org/projects/redmine/wiki/RedmineCustomFields )
There a 173 features openned for custom fields, this is a somehow too much to be reviewed one by one :
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy about 1 year ago
Current prototype status preview.
group_category_layout : a new field that contains a string. It is used as legend for grouped items. Work in progress
fields with a group_category_layout set and same group_category_layout are grouped altogether.
groups are ordered using lexicographic ordering on group_category_layout string.
Attached an example for an Issue with some grouped fields.
Screenshot from 2023-11-10 14-22-54.png (69.1 KB) Screenshot from 2023-11-10 14-22-54.png | custom fields grouped by catgory '4' '5' and 'BIZ' |
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy about 1 year ago
Same request already exist, issue https://www.redmine.org/issues/39530 was updated with link to https://www.redmine.org/issues/35281.
This topic should be discussed to converge to a viable and common solution.
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy 11 months ago
There was no update on this from issues and i have limited time to actualy deliver this feature.
I then will do it as a plugin ( if possible ) and publish it.
Having a working plugin to play with might be a starting point for further discussions.
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy 11 months ago
I did push a prototype in https://www.redmine.org/issues/39530
idea is to reuse custom field as a category to group other custom fields, custom fields have a new attribute for their parent category.
From here we could create a 'group' or 'layout' type to really dedicate them. currently any kind of custom field can be used as a group.
An interest to do this is to support display, info popup of group and improvement in i18n of custom fields without need of extra code.
Somehow can be used as a very restricted version of structured fields like feature as https://www.redmine.org/issues/38957.
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy 11 months ago
Another feature is https://www.redmine.org/issues/40084 that is dedicated to insert static information.
If integrated this kind of custom field could be used as group category.
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy 11 months ago
I took time to port https://www.redmine.org/issues/30919 in current master branch to review how to converge with https://www.redmine.org/issues/39530.
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy 10 months ago
Thanks to Orange sponsoring, development of this feature proceed further.
here is a plugin mixing :
- https://www.redmine.org/issues/39530
- https://www.redmine.org/issues/40084
- https://www.redmine.org/issues/30919
plugin will be attached on https://www.redmine.org/issues/30919
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy 10 months ago
Adding possiblity to change full_width_layout for a group so by project and tracker. some pending work is on github https://github.com/artlog/redmine/ .
RE: Feature to Group Custom Fields by Category - Added by Ko Nagase 10 months ago
Hi philippe lhardy,
I developed the following plugin which is inspired from #30919 patches by Frederico Camara.
Hopefully, this plugin matches for your use case.
https://github.com/gtt-project/redmine_custom_fields_groups
https://github.com/gtt-project/redmine_custom_fields_groups/blob/main/lib/redmine_custom_fields_groups/patches/issues_helper_patch.rb#L10-L12
Just FYI
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy 10 months ago
Hi Ko Nagase
Thanks for coding it and adding this information here.
As you can read in this topic thread, i already did code a plugin and merged extensions to it since i was not aware of your work.
Collecting implementations and trying to move in a common direction is a good step and will be helpful for redmine community.
Kind Regards
RE: Feature to Group Custom Fields by Category - Added by epre nrem 8 months ago
There was no update on this from issues and i have limited time to actualy deliver this feature.
RE: Feature to Group Custom Fields by Category - Added by philippe lhardy 7 months ago
Hi @Ariellffser
You might want to get a look to this branch : https://github.com/artlog/redmine/tree/attribute_category_plugin