MCP Control
Задачи · Чтение

Работа · Задачи · Просмотр · Жизненный цикл

work_task_get_lifecycle
Карточки процесса, соединённые нитями

Попробуйте три запроса

Получить данные
  1. Вы указываетеTaskid
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Работа / Задачи / Просмотр / Жизненный цикл» выполни чтение по выбранной записи (taskId). Выведи кратко: taskId, версия записи.
Что искать в ответе
taskId
Поле ответа
revision
Версия записи
currentStatus
Поле ответа
Следующая страница
  1. Вы указываетеПредыдущий ответ
  2. ПомощникПродолжение
  3. Вы получаетеСледующая страница
Запрос в чат
Продолжи «Работа / Задачи / Просмотр / Жизненный цикл» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Как листать выдачу
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Работа / Задачи / Просмотр / Жизненный цикл» объясни taskId, версия записи. Отметь отсутствующие значения.
Поля для проверки
taskId
Поле ответа
revision
Версия записи
currentStatus
Поле ответа
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании. Прочитайте актуальную версию записи перед подготовкой запроса. При постраничном чтении используйте продолжение ответа с теми же фильтрами.

Описание разработчика

Read a bounded page of native task statuses or history and current schedule/assignees. Optionally request a bounded checklist page to discover existing nested step IDs and completion flags. Preserve the returned revision for further pages and lifecycle writes. This is a current snapshot, not an operation receipt.

Параметры запроса
taskId
Existing Companies/{connected company}/Task document identifier. обязательно по схеме · string
eventList
Native event array to page in its original stored order. обязательно по схеме · string · по умолчанию "status" · варианты status, history
offset
Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 10000
limit
Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 10 · минимум 1 · максимум 10
expectedRevision
Версия, прочитанная перед изменением. необязательно · string
checklist
Request an optional bounded checklist page. The server traverses the native progress/childs tree without returning attachments or other arbitrary fields. необязательно · object
Что вернёт команда
taskId
Existing Companies/{connected company}/Task document identifier. обязательно по схеме · string
revision
Current snapshot revision for CAS writes and further pages. обязательно по схеме · string
currentStatus
Last stored status Name, or null when absent. Unknown legacy values remain text; no completion state is inferred from finish. обязательно по схеме · string / null
scheduledAt
Stored document.scegul scheduled start, if present. обязательно по схеме · null
finishAt
Stored document.finish scheduled end, if present. обязательно по схеме · null
assigneeIds
First 100 assigned user identifiers in stored order. обязательно по схеме · array · до элементов 100
assigneeCount
Total count of stored assignees; a count above the returned length indicates truncation. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
commentExcerpt
First 512 characters of the stored task comment after credential-pattern redaction. обязательно по схеме · string · до символов 512
commentTruncated
Whether the stored comment exceeds this excerpt. обязательно по схеме · boolean
eventList
Native event array to page in its original stored order. обязательно по схеме · string · по умолчанию "status" · варианты status, history
events
Selected page of native events. Other stored fields are preserved but not exposed. обязательно по схеме · array · до элементов 10
totalEvents
Total event count in this exact snapshot. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
nextOffset
Смещение для получения следующей страницы. обязательно по схеме · integer / null
checklist
Present only when checklist was requested. No checklist fields are rewritten by this read. необязательно · object
Поля и технические схемы
Входные поля и поля ответа work_task_get_lifecycle
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Existing Companies/{connected company}/Task document identifier."
    },
    "eventList": {
      "default": "status",
      "description": "Native event array to page in its original stored order.",
      "type": "string",
      "enum": [
        "status",
        "history"
      ]
    },
    "offset": {
      "default": 0,
      "description": "Zero-based event offset. Nonzero offsets require expectedRevision from the first page.",
      "type": "integer",
      "minimum": 0,
      "maximum": 10000
    },
    "limit": {
      "default": 10,
      "description": "Maximum events returned, bounded to keep the result compact.",
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "expectedRevision": {
      "description": "Optional revision binding for the first page; required on subsequent pages to prevent mixing document versions.",
      "type": "string",
      "pattern": "^\\d{1,12}:\\d{1,9}$"
    },
    "checklist": {
      "description": "Request an optional bounded checklist page. The server traverses the native progress/childs tree without returning attachments or other arbitrary fields.",
      "type": "object",
      "properties": {
        "offset": {
          "default": 0,
          "description": "Zero-based offset in native depth-first step order. Nonzero offsets require expectedRevision.",
          "type": "integer",
          "minimum": 0,
          "maximum": 1000
        },
        "limit": {
          "default": 10,
          "description": "Maximum projected checklist steps. Nested children count as separate steps.",
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        }
      },
      "required": [
        "offset",
        "limit"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "taskId",
    "eventList",
    "offset",
    "limit"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Existing Companies/{connected company}/Task document identifier."
    },
    "revision": {
      "type": "string",
      "pattern": "^\\d{1,12}:\\d{1,9}$",
      "description": "Current snapshot revision for CAS writes and further pages."
    },
    "currentStatus": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 96
        },
        {
          "type": "null"
        }
      ],
      "description": "Last stored status Name, or null when absent. Unknown legacy values remain text; no completion state is inferred from finish."
    },
    "scheduledAt": {
      "anyOf": [
        {
          "$ref": "#/$defs/_mcp0"
        },
        {
          "type": "null"
        }
      ],
      "description": "Stored document.scegul scheduled start, if present."
    },
    "finishAt": {
      "anyOf": [
        {
          "$ref": "#/$defs/_mcp0"
        },
        {
          "type": "null"
        }
      ],
      "description": "Stored document.finish scheduled end, if present."
    },
    "assigneeIds": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
        "description": "Native assigned users identifier."
      },
      "description": "First 100 assigned user identifiers in stored order."
    },
    "assigneeCount": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Total count of stored assignees; a count above the returned length indicates truncation."
    },
    "commentExcerpt": {
      "type": "string",
      "maxLength": 512,
      "description": "First 512 characters of the stored task comment after credential-pattern redaction."
    },
    "commentTruncated": {
      "type": "boolean",
      "description": "Whether the stored comment exceeds this excerpt."
    },
    "eventList": {
      "default": "status",
      "description": "Native event array to page in its original stored order.",
      "type": "string",
      "enum": [
        "status",
        "history"
      ]
    },
    "events": {
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Index in the selected original array."
          },
          "Number": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "Stored native Number, or null when omitted."
          },
          "Date": {
            "anyOf": [
              {
                "$ref": "#/$defs/_mcp0"
              },
              {
                "type": "null"
              }
            ],
            "description": "Stored native Date, or null when omitted."
          },
          "Name": {
            "type": "string",
            "maxLength": 96,
            "description": "Bounded native Name text."
          },
          "Comment": {
            "type": "string",
            "maxLength": 384,
            "description": "Bounded native Comment text after credential-pattern redaction."
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether Name or Comment was truncated."
          }
        },
        "required": [
          "index",
          "Number",
          "Date",
          "Name",
          "Comment",
          "truncated"
        ],
        "additionalProperties": false,
        "description": "Safe projection of one native StatusJson event."
      },
      "description": "Selected page of native events. Other stored fields are preserved but not exposed."
    },
    "totalEvents": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Total event count in this exact snapshot."
    },
    "nextOffset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Next offset for the same revision, or null after the final page."
    },
    "checklist": {
      "description": "Present only when checklist was requested. No checklist fields are rewritten by this read.",
      "type": "object",
      "properties": {
        "steps": {
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991,
                "description": "Stable depth-first position within this revision."
              },
              "stepId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Native step ID or null if absent. A step without an ID is readable but cannot be selected for this mutation."
              },
              "parentIndex": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Depth-first index of the parent or null for a top-level step, including parents outside this page."
              },
              "depth": {
                "type": "integer",
                "minimum": 0,
                "maximum": 20,
                "description": "Zero for a top-level step."
              },
              "completed": {
                "type": "boolean",
                "description": "Native progress boolean; an omitted value is false."
              },
              "required": {
                "type": "boolean",
                "description": "Native required boolean; an omitted value is false. This flag does not trigger automatic task completion."
              },
              "title": {
                "maxItems": 2,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "Language": {
                      "type": "string",
                      "maxLength": 40,
                      "description": "Stored native language value."
                    },
                    "Text": {
                      "type": "string",
                      "maxLength": 128,
                      "description": "Bounded and credential-redacted native title text."
                    }
                  },
                  "required": [
                    "Language",
                    "Text"
                  ],
                  "additionalProperties": false
                },
                "description": "First two localized title entries using the native Language/Text keys. Other native entries remain stored unchanged."
              },
              "titleTruncated": {
                "type": "boolean",
                "description": "Whether any title entries, language values or text were shortened."
              }
            },
            "required": [
              "index",
              "stepId",
              "parentIndex",
              "depth",
              "completed",
              "required",
              "title",
              "titleTruncated"
            ],
            "additionalProperties": false
          },
          "description": "Bounded step page in native depth-first order."
        },
        "totalSteps": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000,
          "description": "Total validated steps in this snapshot."
        },
        "nextOffset": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ],
          "description": "Next checklist offset, bound to this response revision."
        }
      },
      "required": [
        "steps",
        "totalSteps",
        "nextOffset"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "taskId",
    "revision",
    "currentStatus",
    "scheduledAt",
    "finishAt",
    "assigneeIds",
    "assigneeCount",
    "commentExcerpt",
    "commentTruncated",
    "eventList",
    "events",
    "totalEvents",
    "nextOffset"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    }
  }
}