Skip to content

GraphQL: Add mutation to create the default backlog list for a board

What does this MR do?

Related to #229826 (closed)

Allows for the creation of the backlog list in a board, and a label list in board

Creating the backlog list

  boardListCreate(input: { boardId: "gid://gitlab/Board/1", backlog: true }) {
    list {
      id
      listType
    }
    errors
  }

gives

{
  "data": {
    "boardListCreate": {
      "list": {
        "id": "gid://gitlab/List/3",
        "listType": "backlog"
      },
      "errors": []
    }
  }
}

Creating a label list

  boardListCreate(input: { boardId: "gid://gitlab/Board/1", labelId: "gid://gitlab/ProjectLabel/107" }) {
    list {
      id
      title
    }
    errors
  }

gives

{
  "data": {
    "boardListCreate": {
      "list": {
        "id": "gid://gitlab/List/6",
        "title": "Optima"
      },
      "errors": []
    }
  }
}

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

Closes #215533 (closed)

Edited by Brett Walker

Merge request reports

Loading