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

Pass parent_id

Oliver Güntherf0800d86eff5
diff --git a/app/components/work_package_relations_tab/index_component.rb b/app/components/work_package_relations_tab/index_component.rb
index 10a51d88c66..80759d331a1 100644
--- a/app/components/work_package_relations_tab/index_component.rb
+++ b/app/components/work_package_relations_tab/index_component.rb
@@ -110,7 +110,7 @@ class WorkPackageRelationsTab::IndexComponent < ApplicationComponent
menu.with_item(
label: t("work_package_relations_tab.relations.new_child"),
- href: new_project_work_packages_dialog_path(work_package.project),
+ href: new_project_work_packages_dialog_path(work_package.project, parent_id: work_package.id),
content_arguments: {
data: { turbo_stream: true }
}