{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hourtick/main/json-schema/hourtick-work-item-schema.json",
  "title": "WorkItem",
  "description": "A task. Status: todo | in_progress | review | done. Priority: 0 none … 4 urgent. `description` (in the detail and in writes) is Markdown, including `- [ ]` checklists.",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/hourtick-v1-openapi.json#/components/schemas/WorkItem",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "number": {
      "type": "integer",
      "description": "Short number shown as #12"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "todo",
        "in_progress",
        "review",
        "done"
      ]
    },
    "priority": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4
    },
    "projectId": {
      "type": [
        "string",
        "null"
      ]
    },
    "clientId": {
      "type": [
        "string",
        "null"
      ]
    },
    "dueDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "estimateSeconds": {
      "type": [
        "integer",
        "null"
      ]
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "position": {
      "type": "number"
    },
    "assigneeIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "trackedSeconds": {
      "type": "integer"
    },
    "runningUserIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "commentCount": {
      "type": "integer"
    },
    "attachmentCount": {
      "type": "integer"
    },
    "checklistDone": {
      "type": "integer"
    },
    "checklistTotal": {
      "type": "integer"
    }
  }
}