Fix referencing group work items

What does this MR do and why?

Fix referencing group work items

This fixes a bug where referencing a group work item caused a 500 error.

WorkItems are either on a project or a group, but we need to use .namespace instead of .group in that case.

Changelog: fixed EE: true

References

Issue: #566150 (closed)

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. Create a new epic
  2. Navigate to the epic's edit page
  3. Add a reference to another epic in the description field (e.g., #123 (closed) or epic link)
  4. Click the Save button

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Nicolas Dular

Merge request reports

Loading