Skip to content

Add GraphQL mutation to set the epic of an issue

What does this MR do?

Related to #229506 (closed)

Mutation to set the epic of an issue.

mutation{
  issueSetEpic(input: {projectPath: "gitlab-org/gitlab-test", iid: "9", epicId: "gid://gitlab/Epic/37"}) {
    issue {
      iid
      epic {
        id
        title
      }
    }
  }
}
{
  "data": {
    "issueSetEpic": {
      "issue": {
        "iid": "9",
        "epic": {
          "id": "gid://gitlab/Epic/37",
          "title": "test epic"
        }
      }
    }
  }
}

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Eugenia Grieff

Merge request reports

Loading