Project

General

Profile

Plugins Directory » Project Enumerations Custom Field Format

Author: Jérôme BATAILLE
Website: https://github.com/Smile-SA/redmine_smile_project_enumerations_custom_field_format
Code repository: https://github.com/Smile-SA/redmine_smile_project_enumerations_custom_field_format
Registered on: 2019-10-07 (over 4 years ago)
Current version: 1.3.10
Compatible with: Redmine 4.1.x, 4.0.x, 3.4.x
User ratings:   (2)

This plugin adds a new custom field format,
that allows to have Enumerations whose values are
set in the project

How it works

What it does

  • Adds a new value in the CustomFiels types : Project Enumeration

exemple :

  • Adds a new premission : manage_project_enumerations

This permissions allow to edit Project Enumerations values for the project.
When a user has this permission a new tab appears in the Project Settings.

  • When the custom field has been enabled in the project configuration, it appears in the issue form like a normal custom field :

  • The project Enumeration values can be edited in the new Project Enumeration tab in the Project settings :

  • Enumerations can be edited one be one, when clicking on the edit icon :

  • Project Custom Fields configuration split by Tracker :

  • Possible values can be filtered with their status :

To apply filtering you have to check only in the custom field configuration, and check the statuses you want to restrict.
If you keep all checked, all the values will be accessible in the custom field edit drop-down list, whatever their configured status.
Of course, if a possible value becomes unavailable the previous custom value using this one is kept.

Project Enumeration Custom Fields have the same behavior as Categories, so they work the same in this particular aspect.

For information the locked status is a convention to enable temporarily a status before it becomes closed (for a sort of transition period before to disable it), it does not mean anything else.

  • Tested with Redmine V4.0.0, V4.0.3

How it is implemented

  • Adds new Redmine::FieldFormat::ProjectEnumerationFormat derived form RecordList
  • Extends Projects Controller settings action
  • Extends Projects Helper project_settings_tabs method
  • Adds new Project shared_enumerations method

Installation notes

  • This plugin has no dependency
  • It overrides a few methods
  • be careful with the plugin folder directory, it must be exactly the plugin name

Changelog

1.3.10 (2020-02-29)

Compatible with Redmine 4.1.x, 4.0.x, 3.4.x.

Fixed error with Postgresql : is_for_all = 1

1.3.9 (2020-02-22)

Compatible with Redmine 4.1.x, 4.0.x, 3.4.x.

Project Custom Fields configuration, split by tracker : optimization

1.3.8 (2020-01-21)

Compatible with Redmine 4.1.x, 4.0.x, 3.4.x.

Value field input : 40 -> 80 characters

1.3.7 (2020-01-21)

Compatible with Redmine 4.1.x, 4.0.x, 3.4.x.

Fix : Project enumeration on project, bug at project creation

1.3.5 (2020-01-17)

Compatible with Redmine 4.1.x, 4.0.x, 3.4.x.

Extends project_enumeration.value column size from 60 to 255

1.3.4 (2020-01-09)

Compatible with Redmine 4.1.x, 4.0.x, 3.4.x.

  • Enable Project Enumerations on UserCustomField formats

1.3.3 (2020-01-08)

Compatible with Redmine 4.1.x, 4.0.x, 3.4.x.

Lower constraint on rails version : 4 -> 3.4

Compatibility with Redmine >= 4.1 not tested yet

1.3.1 (2019-12-10)

Compatible with Redmine 4.0.x.

  • Adds a new value in the CustomFiels types : Project Values List
    To manage a Values list whose possible values are configured in the project. The difference with Project Enumeration Field Format is that the value is stored in the custom_values table, not the id
  • Splits Custom Field Project configuration by Tracker
    See #30739
    • Adds three Hooks in this partial :
      • view_project_settings_tracker_before_checkbox
      • view_project_settings_tracker_after_checkbox
      • view_project_settings_issues_custom_fields

1.0.6 (2019-12-03)

Compatible with Redmine 4.0.x.

  • Add a new Project List of Values Field format that like the List Field format stores the value in the database, and not the Id like in the Project Enumeration Field format.

1.0.2 (2019-10-15)

Compatible with Redmine 4.0.x.

  • shared_enumerations fixed (namespaces)

1.0.1 (2019-10-07)

Compatible with Redmine 4.0.x.

  • Fixed redirect to Project enumerations tab after update
  • Project Enumeration status editable at creation

1.0 (2019-10-03)

Compatible with Redmine 4.0.x.

Initial version

User ratings

  by Eugenia B. over 1 year ago

- this plugin is not compatible with redmine 5.0.2
- it is not possible to order values ​​of a list with many elements

  by Taine Woo over 4 years ago

Great plugin to let users work better without Administrator and to manage/share the values of custom fields.