Skip to content

Sync a RelatedEpicLink record when a RelatedWorkItem link is created

Felipe Artur requested to merge issue_450301 into master

What does this MR do and why?

Creates a Epics::RelatedEpicLink record for every WorkItems::RelatedWorkItemLink record is created.

Sync of deletions will be added in a follow-up.

related to #450301 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Enable :sync_work_item_to_epic and :sync_epic_to_work_item feature flags
  2. Make sure that :make_synced_work_item_read_only is disabled
  3. Create one epic A using the URL http://gdk.test:3000/groups/GROUP_PATH/-/epics/new
  4. Create one epic B by visiting the same URL from above
  5. Visit epic A as a work item by visiting http://gdk.test:3000/groups/GROUP_PATH/-/work_items/EPIC_A_IID and add work item B blocking it using related work items widget on UI
  6. Now visit epic A as an epic using the URL http://gdk.test:3000/groups/GROUP_PATH/-/epics/EPIC_A_IID

The same relationship between epic A and B should be present in the work item view.

Edited by Felipe Artur

Merge request reports