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:

  1. 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).
  2. Enable Epic work items
    1. Feature.enable(:work_item_epics_rollout)
    2. Feature.enable(:work_item_epics)

Steps to verify at Group level:

  1. Login with any user
  2. Go to Group > Epics
  3. Open or create an Epic
  4. Create a child item or add an existing child item
  5. Verify if the form is closed after the item is added to the list

Steps to verify at Project level:

  1. Login with any user
  2. Go to Project > Issues
  3. Open or create an Issue/Objective
  4. Create a child item or add an existing child item
  5. Verify if the form is closed after the item is added to the list

Related to #475002 (closed)

Merge request reports

Loading