Skip to content

Update mutation for work item labels

Simon Knox requested to merge psi-labels-widget-mutation into master

What does this MR do and why?

Shameless copy of !92417 (merged), but for labels

Add a GraphQL mutation to update a work item's labels

How to set up and validate locally

Sample query:

mutation WorkItemUpdate {
  workItemUpdate(input: {id: "gid://gitlab/WorkItem/503", labelsWidget: {labelIds: ["gid://gitlab/Label/1"]}})  {
    workItem {
      id
      __typename
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #339756 (closed)

Merge request reports