Display work item Epic in legacy issue sidebar
What does this MR do and why?
Right now, there is no way to assign an Epic work item (a group level work item) to an issue. This MR adds ability to assign a Epic work item to an issue.
If the FF display_work_item_epic_issue_sidebar
is enabled, this MR will
- list legacy Epics and Epic work items in the
Epic
sidebar widget of an issue without search functionality - allow setting a legacy Epic or Epic work item from the issue sidebar
If the FF is disabled,
- Only legacy Epics will be listed with search functionality
- allow setting legacy Epic from the issue sidebar
References to the note:
Screenshots or screen recordings
Screen Recording 2023-12-04 at 9.11.47 PM.mov
How to set up and validate locally
Prerequisites:
- Enable the feature flags
Feature.enable(:display_work_item_epic_issue_sidebar)
Feature.enable(:namespace_level_work_items)
- The namespace must have Ultimate plan.
Steps to verify:
-
Login with any user
-
Go to any Group > Epics
-
Modify the link path from
/epics
to/work_items
like below -
Create a new Epic
-
Go to any Project of the group
-
Navigate to Issues > Issue detail
-
In the sidebar, click on
Edit
button of Epic field -
Check if searching is not supported and the newly created Epic work item is visible
-
Select the Epic work item
-
Check if it is updated on the issue
In addition to above flow, it also affects the issues sidebar on the Epic and issue boards
After performing above,
- Visit Project > Issue boards or Group > Issue boards
- Click on the issue card to open a sidebar
- Check if searching is not supported and the newly created Epic work item is visible
- Select the Epic work item
- Check if it is updated on the issue
Moreover, the update flow has graphql subscription and supports syncing of the Epic
field value.
To check that, perform all the creation steps of Epic and Issue, after that
- Login with a different user in incognito mode
- Update the
Epic
with normal user - Check if the data is updated in both the browser window
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #423984 (closed)