This mutation updates an existing work item.
Query
updateWorkItem (WorkItem!)
Updates a single work item.
| Argument | Type | Description |
|---|---|---|
| app | String! |
The api name of the app to update the work item instance in. |
| type | String! |
The template api name of the item to update. |
| id | ID! |
The id of the item to update. |
| attributes | [AttributeValueUpdate!] |
Attribute values to set. |
| metrics | [MetricValueUpdate!] |
Metric values to update. |
| participants | [ParticipantUpdate!] |
Participants to assign or unassign. |
Example
mutation {
updateWorkItem(
app: "App_1__app"
type: "Program__t"
id: "1"
attributes: [
{attribute: "name" value: "Top Level"}
]
metrics: [
{metric: "Savings__m" dataset: "target__d" start: "01/01/2025" end: "12/31/2025" value: "1000000"}
]
participants: [
{username: "[email protected]" role: "Budget_Administrator__r"}
]) {
url
}
}
{
"data": {
"updateWorkItem": {
"url": "https://app.shibumi.com/shibumi/12345678-1234-1234-1234-123456789012/workItem-summary?id=12345678-1234-1234-1234-123456789012"
}
}
}