Append correct iid in URL after 3rd child in child widget
What does this MR do and why?
Wrong work item iid appended in the url in the work item iid when is open in Child Items
widget for following hierarchy
flowchart TD
Epic --> E[Child Epic]
E --> F[Issue]
F --> Task
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
Before | After |
---|---|
Screen Recording 2024-07-01 at 7.44.28 PM.mov | Screen Recording 2024-07-01 at 7.45.17 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(:namespace_level_work_items)
Steps to verify:
-
Login with any user
-
Create hierarchy like below
epic -> subepic -> issue -> task
-
Go to the topmost Epic
-
Navigate to the task in the Child Items widget
-
Click on the Task link and check if it open the correct work item
Related to #465965
Edited by Rajan Mistry