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_32__app"
type: "Proposed_Dependency__t"
parent: {type: "Workstream__t", id: "23"}
attributes: [
{attribute: "name" value: "Dependency 1"}
{attribute: "Successor_Project__q" value: "36"}
{attribute: "Successor_Milestone__q" value: "107"}
{attribute: "Predecessor_Workstream__q" value: "21"}
{attribute: "AI_Generated__c" value: "true"}
]
}, {
app: "App_32__app"
type: "Proposed_Dependency__t"
parent: {type: "Workstream__t", id: "23"}
attributes: [
{attribute: "name" value: "Dependency 2"}
{attribute: "Successor_Project__q" value: "36"}
{attribute: "Successor_Milestone__q" value: "107"}
{attribute: "Successor_Milestone__q" value: "107"}
{attribute: "Predecessor_Workstream__q" value: "24"}
{attribute: "AI_Generated__c" value: "true"}
]
}
]) {
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"
}
]
}
}