Skip to content

Add support for attaching epics to an epic

Kushal Pandya requested to merge 8333-add-related-epics-support into master

What does this MR do?

This MR adds support for attaching Epics to an Epic and establish a parent-child relation ship.

Backend

parent_id was added to an epic

A new controller EpicLinksController was added. This controller uses the EpicRelations concern.

  • create - calls newly created EpicLinks::CreateService (inherited from `IssuableLinks::CreateService)
  • index - calls newly created EpicLinks::ListService (inherited from `IssuableLinks::CreateService)
  • destroy - calls Epics::UpdateService because we only want to set parent to nil for an epic

Maximum 5 levels of epics are allowed, this is checked inside EpicLinks::CreateService.

Does this MR meet the acceptance criteria?

Closes #8333 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports