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

[#55483] Project custom field of type link not listed in project settings

Dombi Attila706228647020
diff --git a/frontend/src/app/core/forms/typings.d.ts b/frontend/src/app/core/forms/typings.d.ts
index e7b40166a3b..375237dadf8 100644
--- a/frontend/src/app/core/forms/typings.d.ts
+++ b/frontend/src/app/core/forms/typings.d.ts
@@ -105,7 +105,7 @@ interface IOPAllowedValue {
type OPFieldType = 'String' | 'Integer' | 'Float' | 'Boolean' | 'Date' | 'DateTime' | 'Formattable' |
'Priority' | 'Status' | 'Type' | 'User' | 'Version' | 'TimeEntriesActivity' | 'Category' |
-'CustomOption' | 'Project' | 'ProjectStatus' | 'Password';
+'CustomOption' | 'Project' | 'ProjectStatus' | 'Password' | 'Link';
interface IOPFormError {
errorIdentifier:string;
diff --git a/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts
index 8ae77667110..8b06d62b060 100644
--- a/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts
@@ -32,6 +32,15 @@ export class DynamicFieldsService {
},
useForFields: ['Password'],
},
+ {
+ config: {
+ type: 'textInput',
+ templateOptions: {
+ type: 'text',
+ },
+ },
+ useForFields: ['Link'],
+ },
{
config: {
type: 'integerInput',
diff --git a/spec/features/projects/project_custom_fields/settings/mapping_spec.rb b/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
index faf9ff175d9..d30b14b7f69 100644
--- a/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
+++ b/spec/features/projects/project_custom_fields/settings/mapping_spec.rb
@@ -129,6 +129,28 @@ RSpec.describe 'Projects custom fields mapping via project settings', :js, :with
end
end
+ it "does show the activated custom fields in the project general settings page" do
+ link_project_custom_field =
+ create(:link_project_custom_field, name: "Link field",
+ project_custom_field_section: section_for_input_fields)
+
+ project.project_custom_fields << [
+ boolean_project_custom_field,
+ string_project_custom_field,
+ link_project_custom_field,
+ list_project_custom_field,
+ multi_list_project_custom_field
+ ]
+
+ visit project_settings_general_path(project)
+
+ expect(page).to have_content("Boolean field")
+ expect(page).to have_content("String field")
+ expect(page).to have_content("Link field")
+ expect(page).to have_content("List field")
+ expect(page).to have_content("Multi list field")
+ end
+
it 'shows all available project custom fields with their correct mapping state' do
visit project_settings_project_custom_fields_path(project)