Remove work_item_hierarchy_restrictions records for ticket type
Remove the following records from the work_item_hierarchy_restrictions table:
| id | parent_type_id | child_type_id | maximum_depth | cross_hierarchy_enabled |
|---|---|---|---|---|
| 21688933 | 9 | 1 | 1 | f |
| 21688932 | 9 | 9 | 1 | f |
These records were erroneously added when the Ticket type was introduced and not included in HierarchyRestrictionsImporter, so these hierarchy relationships should not be supported.
Because of these records, the GQL field allowedParentTypes returns the Ticket type when querying the Issue type, which is not expected (see #537291 (comment 2506472388))
For guidance, see work items documentation.
Edited by Eugenia Grieff