Skip to content

Add GraphQL mutation for subscribing to a work item

What does this MR do and why?

Add a mutation workItemSubscribe to allow users to subscribe to the work item notifications

Example mutation
mutation {
  workItemSubscribe(input: {id: "gid://gitlab/WorkItem/1", subscribed: true}) {
    workItem {
      widgets {
        ... on WorkItemWidgetNotifications {
          subscribed
        }
      }
    }
    errors
  }
}

Note: This mutation has been marked as alpha because work items are still under development.

Screenshots or screen recordings

Subscribe Unsubscribe
Screenshot_2023-07-21_at_12.36.40 Screenshot_2023-07-21_at_12.37.02

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 #412831 (closed)

Edited by Eugenia Grieff

Merge request reports