project-management icon indicating copy to clipboard operation
project-management copied to clipboard

Custom fields for projects, issues, epics

Open thomaswacker opened this issue 2 years ago • 7 comments

I often need custom fields, especially for issues. The scope for a custom field should be

  • for all project
  • for selected projects

In Redmine you can do this very easy. I know its not as easy to implement as you need for Filament. But it would be a great enhancement.

thomaswacker avatar Jul 22 '23 10:07 thomaswacker

Could you put some screenshots to have an idea. I worked a long time ago with redmine.

mihaisolomon avatar Jul 22 '23 14:07 mihaisolomon

Here are some screenshots from my Redmine.

Overview:

admin_custom_fields_overview

Create field - first step:

admin_create_custom_field_2

Create field - second step:

admin_create_custom_field_1

thomaswacker avatar Jul 23 '23 12:07 thomaswacker

Could you put the Redmine task view with some custom fields added, so we will know how it will look in the end.

mihaisolomon avatar Jul 24 '23 07:07 mihaisolomon

It looks like every other field. You can't see any difference between custom fields and default fields, except they are placed below the default fields.

thomaswacker avatar Jul 26 '23 13:07 thomaswacker

I found this packaged https://github.com/sunel/eav that could solve a part o the problem, let's say managing the custom fields.

The only thing that needs done it's the interface and the way we create the tickets to add those fields into the views.

From my point we have to do the followings:

  • Create the interface where we can add delete update the custom fields.
  • Update the create of the ticket view to add those custom fields in the flow.
  • Update the editing of the ticket to make possible the editing for the tickets.

If I'm missing something please add here.

mihaisolomon avatar Jul 28 '23 12:07 mihaisolomon

That would be one possibility. Another possibility would be to use only one table for the values - that's how Redmine does it. You can use "textarea" as the data type for the field. Attached are all the tables from a Redmine instance for custom fields ("custom_field_enumerations" was never filled).

redmine_custom_fields.txt

thomaswacker avatar Jul 29 '23 11:07 thomaswacker

The structure is almost the same with the one generated by this library https://github.com/sunel/eav . The only difference is that we have some of the logic already done.

I will start soon a PR with some basic functionalities and we go from there.

mihaisolomon avatar Aug 07 '23 13:08 mihaisolomon