This mutation allows bulk creating of multiple work items.
Query
createWorkItems ([WorkItem!]!)
Bulk creates multiple work items. Work items are created and returned in the same order as the argument.
Argument | Type | Description |
---|---|---|
items | [CreateWorkItemFields! ]! |
A list of arguments to pass to createWorkItem . See that page for more details. |
Examples
Bulk creating work items with metric, association, and participant values
This example bulk-creates work items with initial attribute, metric, association, and participant values.
mutation {
createWorkItems(
items: [
{
app: "App_1__app"
type: "Program__t"
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"
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": {
"createWorkItems": [
{
"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"
}
]
}
}