Epic autocomplete does not find epics from ancestor groups

Summary

Ancestor epics are not shown in the autocomplete drop down when using /epic or &. Only current group's epics are shown. This feels like a bug as it gives the impression that no ancestor epics exist.

Steps to reproduce

  1. Create group and add epic to it.
  2. Create nested group.
  3. Crete project in the nested group.
  4. Create issue in the project and try to refer to the epic with either /epic &number or &number. The drop down doesn't show the ancestor epic.

Example Project

Any project with nested parent groups. E.g https://gitlab.com/gitlab-org/monitor/general/issues

Issues in project above doesn't show ancestor epics in autocomplete drop down.

What is the current bug behavior?

Ancestor epics are not shown in epic drop down when using /epic or &.

Possible fixes

Lookup epics not just in the current group but also in ancestor groups. The epic numbers will collide as current and ancestor group both can have the same epic number so the full path to the epic needs to be shown.

Current design was discussed here: https://gitlab.com/gitlab-org/gitlab-ee/issues/5605#note_80127902

Example: epic_slash_command

Edited Feb 20, 2019 by Erik Tideman
Assignee Loading
Time tracking Loading