Skip to content

Add aditional arguments to IssuesBulkUpdate mutation

Mario Celi requested to merge 327247-add-additional-arguments-to-mutation into master

What does this MR do and why?

Adds iteration_id and milestone_id to the new IssuesBulkUpdate mutation. MR 2 for #327247 (closed) since I'm splitting the changes required to keep the MRs smaller

How to set up and validate locally

  1. Enable the feature flag in the rails console Feature.enable(:bulk_update_issues_mutation)
  2. In GraphiQL execute a mutation like the following. Make sure the IDs belong to the same project and group for it to work
mutation {
  issuesBulkUpdate(
    input: {
      ids: ["gid://gitlab/WorkItem/46", "gid://gitlab/WorkItem/47"],
      parentId: "gid://gitlab/Project/6",
      milestoneId: "gid://gitlab/Milestone/51",
      iterationId: "gid://gitlab/Iteration/131"
    }
  ) {
    errors
    updatedIssueCount
  }
}

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

Edited by Mario Celi

Merge request reports