Skip to content

Fix permissions to relate work items

Joseph Wambua requested to merge jj-451457-work-item-relation-permissions into master

What does this MR do and why?

We should allow guests to link work items to each other. For epics, we only allow linking when the related_epics feature is enabled.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image.png image.png

How to set up and validate locally

  1. Enable the namespace_level_work_items feature flag: `Feature.enabled?(:namespace_level_work_items)`
  2. As a non-admin user, create a group and navigate to its work item Plan->Epics
  3. Add two epics
  4. Log in as a guest, or instance administrator
  5. When you open one of the epics you will not be given the option to link it to other epics
  6. When checked out to this branch, the 'Add' button should appear.

Merge request reports