Closes form on adding or creating child work items
What does this MR do and why?
In legacy form we close the form after an Epic is created or an existing Epic is added. Same gap is addressed in this MR for in work items.
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.
Screenshots or screen recordings
| Scenario | Before | After |
|---|---|---|
| Add existing item | Screen Recording 2024-08-05 at 3.10.34 PM.mov | Screen Recording 2024-08-05 at 3.12.41 PM.mov |
| Create a new item | Screen Recording 2024-08-05 at 3.10.03 PM.mov | Screen Recording 2024-08-05 at 3.12.12 PM.mov |
How to set up and validate locally
Prerequisites:
- Enable the OKRs feature as mentioned in the OKRs docs (e.g.
::Feature.enabled?(:okrs_mvc, Project.find(<PROJECT_ID>))and the namespace must have Ultimate plan). - Enable Epic work items
Feature.enable(:work_item_epics_rollout)Feature.enable(:work_item_epics)
Steps to verify at Group level:
- Login with any user
- Go to Group > Epics
- Open or create an Epic
- Create a child item or add an existing child item
- Verify if the form is closed after the item is added to the list
Steps to verify at Project level:
- Login with any user
- Go to Project > Issues
- Open or create an Issue/Objective
- Create a child item or add an existing child item
- Verify if the form is closed after the item is added to the list
Related to #475002 (closed)