Bug when moving issues from one epic to another
- Enable sync epics to a work item
- Create an epic
- Create a sub-epic within that epic
- Create an issue within the epic
- Move the issue from epic to the sub-epic.
=> Errors “Something went wrong while moving item.”
Payload:
"epicTreeReorder": {
"clientMutationId": null,
"errors": [
"#123 cannot be added: already assigned to an epic"
],
"__typename": "EpicTreeReorderPayload"
}
Reasoning: in the model we check if the issue we move already has a parent_link. We error if that’s the case/not the same epic we already have. https://gitlab.com/gitlab-org/gitlab/-/blob/e42c603b25297256b0aec1120e8c80b924b5ecb1/ee/app/models/epic_issue.rb#L61
Edited by Nicolas Dular