Add WorkItemUpdate mutation to GraphQL API
What does this MR do and why?
Adds workItemUpdate mutation to the GraphQL API. This first iteration only allows to close or reopen a work item through the state_event
argument.
How to set up and validate locally
- Run
bundle exec rails console
- Run
Feature.enable(:work_items)
- Execute a GraphQL query like
mutation {
workItemUpdate(input: { id: "gid://gitlab/WorkItem/1", stateEvent: CLOSE }) {
workItem {
title
state
id
title
}
}
}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #346134 (closed)