Skip to content

Allow instance administrators to link work items

Joseph Wambua requested to merge jj-451457-allow-admins-to-link-work-items into master

What does this MR do and why?

Currently we only allow group/project members to link work items, but instance level administrators need to be able to do so as well.

Related to: Give instance level admins permissions to link group level issues

Screenshots or screen recordings

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

Before After

Instance administrators cannot link group

level work items unless they are added as namespace members

image.png

Administrators can link group level work items

Screenshot 2024-05-21 at 11.39.11.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 an instance level 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.
Edited by Joseph Wambua

Merge request reports