Add `explicit_mr_work_item_relations` FF and open modal on sidebar work item "+" click

What does this MR do and why?

This MR is one iteration for [FE] Support explicit linking of work items wit... (#601588)

This merge request adds the ability to link work items to merge requests through a new user interface. The changes introduce an "Add work item" button in the sidebar that opens a modal dialog where users can search for existing work items or create new ones to associate with the merge request. The feature is controlled by a new feature flag called "explicit_mr_work_item_relations" and includes permission checks to ensure only users with admin rights on the merge request can add work items. The interface also shows recently visited work items and allows filtering by items assigned to the current user, making it easier to find and link relevant work items to merge requests.

More information about where we are at to make sure MR is not too big to review and FE and BE can work parellelly

Iterations Any graphql changes ? Current MR
Introduce FF and show the modal based on user permission No

Make changes in graphql query for linked items , this will also make sure the minute details of the design will be taken care of and will ask UX review

Make changes to existing query for fetching per... (#601590)

Yes

Dependent MR - !238500

📨

Manually delete the links in the related sidebar widget

yes

Dependent MR - !238500

📨

References

Screenshots or screen recordings

Production use case Screenshot
Hide/collapse of multiple work items with FF on Screenshot 2026-06-03 at 2.47.29 PM.png
Hide collapse of multiple work items with FF off Screenshot 2026-06-03 at 2.48.34 PM.png
No work items with FF off Screenshot 2026-06-03 at 2.49.21 PM.png
No work items with FF on Screenshot 2026-06-03 at 2.51.11 PM.png

How to set up and validate locally

  1. Enable the FF explicit_mr_work_item_relations
  2. See that you are able to open the modal when FF is switched on
  3. This MR does not add the ability to add relations since it is based on BE MR's but we are going in iterations

MR acceptance checklist

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

Related to #601590

Edited by Deepika Guliani

Merge request reports

Loading