Add create custom field button and mutation

What does this MR do and why?

Add simplified form for adding custom fields. This is for adding items to a list on Group Settings page, they are currently not usable elsewhere.

Form allows setting type, name, and option values for select fields.

What does this MR not do?

Things for next MRs, in approximate order:

  • Dropdown button for setting custom field type - for now I set default value of the field instead
  • Re-ordering of options
  • Editing of existing custom fields
  • Add custom fields to work item types

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

Screenshots or screen recordings

Screenshot_2024-11-18_at_23.04.15

customfield

How to set up and validate locally

  1. In rails console enable the experiment fully
    Feature.enable(:custom_fields_feature)
  2. Visit /settings/issues page for a group with an Ultimate license (need to type URL manually sorry) e.g http://127.0.0.1:3000/groups/gitlab-org/-/settings/issues
  3. Click "Create field"
  4. Fill out some values
Edited by Simon Knox

Merge request reports

Loading