Using Webhooks to get task completion notifications
{
"data": {
"task": {
"id": "3824",
"name": "Task Example",
"description": null,
"createdAt": "2022-10-27T17:51:03Z",
"assignee": {
"id": "2386",
"name": "Lily Jones"
},
"requester": {
"id": "2556",
"name": "John Smith"
},
"unit": null,
"status": "idle",
"highPriority": true,
"draft": null,
"dueBy": "2022-10-27T17:50:41Z",
"type": "task",
"company": {
"id": "64"
},
"location": {
"id": "1000000251",
"name": "Alex's Test Location",
"company": {
"id": "64",
"name": "New Test"
},
"workflow": {
"externalIdLock": "open",
"keyboard": null,
"capitalization": null,
"noSpacesAllowed": null
}
},
"comments": {
"edges": []
},
"activities": {
"edges": [
{
"node": {
"id": "8681",
"event": "Created Task",
"createdAt": "2022-10-27T17:51:03Z",
"user": {
"id": "2556",
"email": "[email protected]"
}
}
}
]
},
"markPageAsViewed": {
"errors": []
}
}
}
}
{
"id": "3824",
"due_by": "2022-10-27T17:50:41.000Z",
"name": "Task Example",
"status": "completed",
"created_at": "2022-10-27T17:51:03.795Z",
"updated_at": "2022-10-27T17:52:21.849Z",
"high_priority": true,
"location": {
"id": "1000000251",
"name": "Alex's Test Location"
},
"assignee": {
"id": "2386",
"email": "[email protected]",
"name": "Lily Jones"
},
"requester": {
"id": "2556",
"email": "[email protected]",
"name": "John Smith"
},
"activities": [
{
"event": "Completed Task",
"user": {
"id": "2556",
"email": "[email protected]",
"name": "John Smith"
},
"created_at": "2022-10-27T17:52:21.872Z"
},
{
"event": "Created Task",
"user": {
"id": "2556",
"email": "[email protected]",
"name": "John Smith"
},
"created_at": "2022-10-27T17:51:03.799Z"
}
]
}