Skip to content

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:

  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 Feature.enable(:namespace_level_work_items)

Steps to verify:

  1. Login with any user

  2. Create hierarchy like below

    epic -> subepic -> issue -> task

  3. Go to the topmost Epic

  4. Navigate to the task in the Child Items widget

  5. Click on the Task link and check if it open the correct work item

Related to #465965

Edited by Rajan Mistry

Merge request reports