1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-08 04:04:03 +02:00
OpenIntegrations/docs/ru/md/Bitrix24/Tasks-managment/Stop-watching-task.md
Vitaly the Alpaca (bot) 2741c109d2 Main build (Jenkins)
2024-10-06 21:51:35 +03:00

6.0 KiB

sidebar_position
15

Прекратить наблюдать за задачей

Прекращает наблюдение за задчей по ID

Функция ПрекратитьНаблюдатьЗаЗадачей(Знач URL, Знач IDЗадачи, Знач Токен = "") Экспорт

Параметр CLI опция Тип Назначение
URL --url Строка URL внешнего вебхука или адрес Bitrix24 при использовании токена
IDЗадачи --task Число,Строка ID задачи
Токен --token Строка Токен авторизации, если используется не вебхук

Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Bitrxi24


:::tip Метод в документации API: tasks.task.stopwatch :::

    URL      = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
    IDЗадачи = "2262";

    Результат = OPI_Bitrix24.ПрекратитьНаблюдатьЗаЗадачей(URL, IDЗадачи);

    URL       = "b24-ar17wx.bitrix24.by";
    Токен     = "37d1fe66006e9f06006b12e400000001000...";
    IDЗадачи  = "2264";

    Результат = OPI_Bitrix24.ПрекратитьНаблюдатьЗаЗадачей(URL, IDЗадачи, Токен);
    
  oint bitrix24 ПрекратитьНаблюдатьЗаЗадачей --url "b24-ar17wx.bitrix24.by" --task "170" --token "b9df7366006e9f06006b12e400000001000..."

{
 "result": {
  "task": {
   "id": "2328",
   "title": "Другой заголовок задачи",
   "description": "Другое описание задачи",
   "descriptionInBbcode": "Y",
   "declineReason": "",
   "priority": "1",
   "notViewed": "N",
   "statusComplete": "1",
   "multitask": "N",
   "stageId": "0",
   "responsibleId": "574",
   "responsibleName": "Oleg",
   "responsibleLastName": "Lama",
   "responsibleSecondName": null,
   "responsibleLogin": "e04294d3-8aa4-4716-bef3-0641593b60e8@exepmple.org",
   "responsibleWorkPosition": null,
   "responsiblePhoto": null,
   "dateStart": "2024-10-06T17:32:36+03:00",
   "durationFact": null,
   "timeEstimate": "0",
   "timeSpentInLogs": null,
   "replicate": "N",
   "deadline": "2024-10-07T20:32:00+03:00",
   "deadlineOrig": "07.10.2024 20:32:00",
   "startDatePlan": "2024-10-06T17:32:24+03:00",
   "endDatePlan": "2024-10-07T00:00:00+03:00",
   "createdBy": "1",
   "createdByName": "Антон",
   "createdByLastName": "Титовец",
   "createdBySecondName": null,
   "createdByLogin": "VKuser657846756",
   "createdByWorkPosition": null,
   "createdByPhoto": "30",
   "createdDate": "2024-10-06T17:32:24+03:00",
   "changedBy": "1",
   "changedDate": "2024-10-06T17:32:37+03:00",
   "statusChangedBy": "1",
   "closedBy": "0",
   "closedDate": null,
   "activityDate": "2024-10-06T17:32:36+03:00",
   "guid": "{d04b1de9-17bb-4e65-bba4-6c19ad2063f3}",
   "xmlId": null,
   "mark": null,
   "allowChangeDeadline": "N",
   "allowTimeTracking": "N",
   "matchWorkTime": "N",
   "taskControl": "N",
   "addInReport": "N",
   "forumTopicId": "1622",
   "parentId": null,
   "commentsCount": "3",
   "serviceCommentsCount": "3",
   "forumId": "11",
   "siteId": "s1",
   "subordinate": "N",
   "exchangeModified": null,
   "exchangeId": null,
   "outlookVersion": "9",
   "viewedDate": "2024-10-06T17:32:36+03:00",
   "deadlineCounted": "0",
   "forkedByTemplateId": null,
   "sorting": null,
   "durationPlanSeconds": null,
   "durationTypeAll": "days",
   "scenarioName": [
    "default"
   ],
   "isRegular": "N",
   "flowId": null,
   "isMuted": "N",
   "isPinned": "N",
   "isPinnedInGroup": "N",
   "ufCrmTask": false,
   "ufTaskWebdavFiles": false,
   "ufMailMessage": null,
   "status": "3",
   "statusChangedDate": "2024-10-06T17:32:36+03:00",
   "durationPlan": null,
   "durationType": "days",
   "favorite": "N",
   "groupId": "0",
   "auditors": [],
   "accomplices": [],
   "tags": [],
   "checklist": [],
   "files": [],
   "dependsOn": [],
   "group": [],
   "creator": {
    "id": "1",
    "name": "Антон Титовец",
    "link": "/company/personal/user/1/",
    "icon": "https://b24-ar17wx.bitrix24.by/b28528874/resize_cache/30/c0120a8d7c10d63c83e32398d1ec4d9e/main/d7e/d7e99cf556e4ab676463dae2c00ddfbb/a7e0af6899300e3c684caeca5c334d81.jpg",
    "workPosition": null
   },
   "responsible": {
    "id": "574",
    "name": "Oleg Lama",
    "link": "/company/personal/user/574/",
    "icon": "/bitrix/images/tasks/default_avatar.png",
    "workPosition": null
   },
   "accomplicesData": [],
   "auditorsData": [],
   "newCommentsCount": 0,
   "action": {
    "accept": false,
    "decline": false,
    "complete": true,
    "approve": false,
    "disapprove": false,
    "start": false,
    "pause": true,
    "delegate": true,
    "remove": true,
    "edit": true,
    "defer": false,
    "renew": false,
    "create": true,
    "changeDeadline": true,
    "checklistAddItems": true,
    "addFavorite": true,
    "deleteFavorite": false,
    "rate": true,
    "edit.originator": false,
    "checklist.reorder": true,
    "elapsedtime.add": true,
    "dayplan.timer.toggle": false,
    "edit.plan": true,
    "checklist.add": true,
    "favorite.add": true,
    "favorite.delete": false
   },
   "checkListTree": {
    "nodeId": 0,
    "fields": {
     "id": null,
     "copiedId": null,
     "entityId": null,
     "userId": 1,
     "createdBy": null,
     "parentId": null,
     "title": "",
     "sortIndex": null,
     "displaySortIndex": "",
     "isComplete": false,
     "isImportant": false,
...