updateWorkItems

This mutation allows bulk updating of multiple work items.

Query

updateWorkItems ([WorkItem!]!)
Bulk creates multiple work items. Work items are updated and returned in the same order as the argument.

Argument Type Description
items [UpdateWorkItemFields!]! A list of arguments to pass to updateWorkItem. See that page for more details.

Examples

Bulk updating work items with metric, association, and participant values

This example bulk-creates work items with initial attribute, metric, association, and participant values.

mutation {
  updateWorkItems(
    items: [
      {
        app: "App_1__app"
        type: "Program__t"
        id: "678"
        attributes: [
          {attribute: "name" value: "RPA Program"}
          {attribute: "associated_item__q" value: "321"}
        ]
        metrics: [
          {metric: "Savings__m" dataset: "target__d" value: "1000000"}
        ]
        participants: [
          {username: "[email protected]" role: "Budget_Administrator__r"}
        ]
      }, {
        app: "App_1__app"
        type: "Program__t"
        id: "679"
        attributes: [
          {attribute: "name" value: "Second RPA Program"}
          {attribute: "associated_item__q" value: "423"}
        ]
        metrics: [
          {metric: "Savings__m" dataset: "target__d" value: "500000"}
        ]
        participants: [
          {username: "[email protected]" role: "Team_Lead__r"}
        ]
      }
    ]) {
    url
    id
  }
}
{
  "data": {
    "updateWorkItems": [
      {
        "url": "https://app.shibumi.com/shibumi/12345678-1234-1234-1234-123456789012/workItem-summary?id=12345678-1234-1234-1234-123456789012",
        "id": "678"
      },
      {
        "url": "https://app.shibumi.com/shibumi/12345678-1234-1234-1234-123456789012/workItem-summary?id=12345678-1234-1234-1234-123456789013",
        "id": "679"
      }
    ]
  }
}
Updated on September 9, 2025

Related Articles