Patch #30919

Group Issues Custom Fields - (Form like Issues)

Added by Frederico Camara 3 months ago. Updated 3 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:Candidate for next major release

Description

This patch adds a new tab in the project settings. In this tab, you can reorder and group custom fields for each tracker.

Reordering and grouping custom fields makes them appear as this for this project only in vieweing an issue and editing an issue.

It was developed for Redmine 3.2. In Redmine 3.4~, you can make a custom field take the full width, which makes these go to the bottom of the issue page. I had to adapt it so that you can still reorder the half width custom fields separated from the full width custom fields.

If it sounds confusing, see the screenshots (sorry they are in portuguese).

To apply:

patch p1 < GCF<your redmine version>.patch
touch tmp/restart.txt
RAILS_ENV=production bundle exec rake db:migrate

PDF and email formatting not implemented yet.

GCF1.jpg - Settings tab for Grouping Custom Fields (128 KB) Frederico Camara, 2019-02-25 16:58

GCF2.jpg - Grouped Custom Fields in a new issue (109 KB) Frederico Camara, 2019-02-25 16:58

GCF3.jpg - Grouped Custom Fields in a new issue (filled) (160 KB) Frederico Camara, 2019-02-25 16:58

GCF4.jpg - Issue view with Grouped Custom Fields (137 KB) Frederico Camara, 2019-02-25 16:58

GCF-3.2.patch Magnifier (21.8 KB) Frederico Camara, 2019-02-25 17:05

GCF-3.4.patch Magnifier (25.7 KB) Frederico Camara, 2019-02-25 17:05

GCF-4.0.patch Magnifier (26.3 KB) Frederico Camara, 2019-02-25 17:05

GCFep-4.0.patch Magnifier (12.7 KB) Frederico Camara, 2019-02-27 15:03

GCFep-3.4.patch Magnifier (12.7 KB) Frederico Camara, 2019-02-27 15:03

GCFep-3.2.patch Magnifier (6.4 KB) Frederico Camara, 2019-02-27 15:03

GCF-3.4-final1.patch Magnifier (39.3 KB) Frederico Camara, 2019-03-01 17:22

GCF-4.0-final1.patch Magnifier (39.9 KB) Frederico Camara, 2019-03-01 17:22

GCF-3.2-final1.patch Magnifier (33.6 KB) Frederico Camara, 2019-03-01 17:22

History

#1 Updated by Frederico Camara 3 months ago

Cant edit description. Forgot to include the patch. For stable versions of Redmine 3.2, 3.4 and 4.0.

To apply:

patch -p1 < GCF-<your redmine version>.patch
touch tmp/restart.txt
RAILS_ENV=production bundle exec rake db:migrate

#2 Updated by Go MAEDA 3 months ago

  • Target version set to Candidate for next major release

#3 Updated by Frederico Camara 3 months ago

Including patches for mail and pdf formatting. Apply after the first patch:

patch -p1 < GCFen-<your redmine version>.patch
touch tmp/restart.txt

#4 Updated by Frederico Camara 3 months ago

BUGFIX: Can't delete projects, trackers, custom_fields if there is any grouping.

- Very problematic, you would have to look project by project, remove groups. This patch fixes everything.
- Other fix: the database position entry was created incorrectly. acts_as_list has to set position to null.
- A bit of code refactoring.

Consolidated patch.

This is a consolidated patch for redmine 3.2, 3.4 and 4.0. Apply just this one.

patch -p1 < GCF-<your redmine version>.patch
RAILS_ENV=production bundle exec rake db:migrate
touch tmp/restart.txt

Also available in: Atom PDF