Skip to content

Fix setting parent link FK on epics when importing a group

When importing a group's epics we first create the epic record and handle the parent link after saving. This prevents adding a NOT NULL constraint for the FK work_item_parent_link_id on the epic.

Proposal

Modify BulkImports::EpicObjectCreator so we create the work item using WorkItems::CreateService which handles the parent relationship before saving the epic.