Parent dropdown list is blank when creating a new issue
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
When creating a new issue within a project, the dropdown list for Parent is blank. However, when bulk editing issues in the same project or editing an existing issue, the Parent dropdown list shows valid options.
Steps to reproduce
- Create an
Epicon a sub-group, under a top-level group. - Navigate to a project that is part of a subgroup structure.
- Click
New issueto create a new issue - Observe that the "Parent" dropdown list is empty, you cannot select the
Epiccreated in step 1.
What is the expected correct behavior?
The "Parent" dropdown list should show available Epics from all parent groups and subgroups when creating a new issue, similar to how it works when editing an existing issue
Additional information and related issues
This is similar to what's described in the following issue, prior to the implementation of work items:
Epics from all parent groups should be fetched ... (#332820 - closed)
Output of checks
This bug happens on GitLab.com
Possible fixes
Based on investigation, when creating a new issue, GitLab is only looking at the top-level group for Epics, not including subgroups. The GraphQL query appears to be using includeDescendants: false when it should be including descendants.
When editing an existing issue, the query correctly scopes to include the direct subgroup, which is why it works in that context.