Методы веб-сервиса
Получение полной информации о задаче
Вызов:
~/app/v1.0/api/feeds/task/{taskId}?isCropHtml=true&v=1.0
где taskId — номер задачи. Признак isCropHtml определяет, будут ли вырезаться html-теги из текста задачи.
Метод: GET
{ "tasks": [ { "owner": { "displayName": "...", "userId": ..., "lastPersonalInfoUpdateTime": "..." }, "responsiblePerformer": null, "color": null, "createdDate": "...", "taskStartDate": "...", "dueDateChangeCount": 0, "notShowChangeDueDateCount": false, "isWaitingSign": false, "extParams": [ { "order": 1, "realTypeId": null, "isThroughEp": false, "realId": null, "realTaskId": null, "id": ..., "name": "...", "type": "...", "typeId": "...", "value": "...", "isRequired": false, "isHidden": false, "isEncrypted": false, "canEdit": true }, { ... } ], "files": null, "counters": [ { "taskId": ..., "changedDate": null, "counterType": "Likes", "type": "Likes", "exists": true, "active": true, "changed": false, "counter": ... }, { "taskId": ..., "changedDate": "...", "counterType": "Views", "type": "Views", "exists": true, "active": false, "changed": false, "counter": ... }, { "taskId": ..., "changedDate": null, "counterType": "UserComments", "type": "UserComments", "exists": true, "active": true, "changed": false, "counter": ... } ], "unreadCount": null, "questionCount": null, "lastCommentID": 0, "lastCommentText": null, "templateInfo": { "id": ..., "name": "...", "lastModifiedDate": ..., "cellId": null, "cellName": null, "cellLastModifiedDate": 0 }, "linkedTaskId": null, "comments": null, "isChat": false, "isPinnedToChat": false, "chatNotificationMode": "Normal", "subscribers": null, "guid": "...", "taskID": ..., "taskText": "...", "orderedTime": null, "priority": 1, "subcatID": ..., "stateID": ..., "stateDescription": "...", "isClosed": false, "isOverdue": false, "isWorkFinished": false, "ownerID": 0, "isRejected": false, "modifiedDate": "...", "maxCommentsDate": null } ], "tabs": [ { "hasMoreTasks": false, "type": 0, "taskIds": [ ... ] } ], "categories": [ { "permissions": [ ... ], "rules": { "subcatId": ..., "compactIds": [ ... ], "fullIds": [ ... ] }, "subcatID": ..., "subcatDescription": "..." } ], "templates": [ { "description": "...", "subcatId": null, "content": { "mapping": { ... } }, "guid": "...", "id": ..., "name": "...", "typeId": "static", "modified": "..." } ] }
200 — ОК
500 — у пользователя нет прав на задачу