Skip to main content

Get work order tasks

GET 

/work-orders/:workOrderId/tasks

Returns all tasks linked to a specific work order — both production quality checks triggered by work order events and any food safety inspections associated with the production run. Use this to see the complete task history for a work order, including which checks were performed, who completed them, and whether they passed review.

Request

Response

Tasks linked to this work order

Response
{
"data": [
{
"taskId": "4821",
"title": "Pre-Production Sanitation Check",
"formId": "301",
"formName": "Sanitation Verification Form",
"source": "production",
"taskType": "submission",
"status": "completed",
"priority": "medium",
"assigneeId": "usr-00412",
"assigneeName": "Maria Garcia",
"workOrderId": "6073",
"scheduledDate": "2025-04-10",
"dueDate": "2025-04-10T12:00:00Z",
"createdAt": "2025-04-09T14:00:00Z",
"submission": {
"submissionId": "9102",
"status": "approved",
"submittedAt": "2025-04-10T09:45:00Z",
"submittedById": "usr-00412",
"submittedByName": "Maria Garcia",
"reviewedAt": "2025-04-10T11:20:00Z",
"reviewedById": "usr-00108",
"reviewedByName": "James Chen",
"reviewComments": null,
"fieldData": [
{
"fieldId": "501",
"fieldLabel": "Surface Temperature",
"fieldType": "temperature",
"value": {}
}
]
}
}
],
"pagination": {
"offset": 0,
"limit": 20,
"total": 87
}
}