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

Allow for seeding cross project work package hierarchies

Wieland Lindenthal89183fe5de7b
diff --git a/app/seeders/demo_data/work_package_seeder.rb b/app/seeders/demo_data/work_package_seeder.rb
index 2df339984e4..23930b0a090 100644
--- a/app/seeders/demo_data/work_package_seeder.rb
+++ b/app/seeders/demo_data/work_package_seeder.rb
@@ -104,7 +104,8 @@ module DemoData
description: attributes[:description],
status: find_status(attributes),
type: find_type(attributes),
- priority: find_priority(attributes) || IssuePriority.default
+ priority: find_priority(attributes) || IssuePriority.default,
+ parent: WorkPackage.find_by(subject: attributes[:parent])
}
end