Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#67453] disable hierarchy for project custom fields

Eric Schubert17baf3b42808
diff --git a/app/components/settings/project_custom_fields/header_component.html.erb b/app/components/settings/project_custom_fields/header_component.html.erb
index 0358afd3eed..cf8ea3beb30 100644
--- a/app/components/settings/project_custom_fields/header_component.html.erb
+++ b/app/components/settings/project_custom_fields/header_component.html.erb
@@ -34,6 +34,9 @@
content_arguments: { data: { test_selector: "add-project-custom-field-attribute" } }
) do |sub_menu|
OpenProject::CustomFieldFormat.available_for_class_name("Project")
+ # Reject hierarchy as long as the feature flag for scored lists is not active,
+ # as they share the same selection component
+ .reject { |format| format.name == "hierarchy" && !OpenProject::FeatureDecisions.scored_list_custom_fields_active? }
.sort_by(&:name)
.map do |format|
sub_menu.with_item(