1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-24 05:36:29 +02:00

203 lines
6.0 KiB
Markdown
Raw Normal View History

---
sidebar_position: 15
---
# Прекратить наблюдать за задачей
Прекращает наблюдение за задчей по ID
2024-07-10 13:58:29 +03:00
`Функция ПрекратитьНаблюдатьЗаЗадачей(Знач URL, Знач IDЗадачи, Знач Токен = "") Экспорт`
| Параметр | CLI опция | Тип | Назначение |
|-|-|-|-|
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
| IDЗадачи | --task | Число,Строка | ID задачи |
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Bitrxi24
2024-07-10 14:05:58 +03:00
<br/>
:::tip
Метод в документации API: [tasks.task.stopwatch](https://dev.1c-bitrix.ru/rest_help/tasks/task/tasks/tasks_task_stopwatch.php)
:::
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Пример кода"
2024-09-24 11:38:18 +03:00
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
2024-10-03 20:35:39 +03:00
IDЗадачи = "2262";
2024-08-13 16:47:32 +03:00
Результат = OPI_Bitrix24.ПрекратитьНаблюдатьЗаЗадачей(URL, IDЗадачи);
2024-09-24 11:38:18 +03:00
URL = "b24-ar17wx.bitrix24.by";
2024-10-03 20:35:39 +03:00
Токен = "37d1fe66006e9f06006b12e400000001000...";
IDЗадачи = "2264";
2024-08-13 16:47:32 +03:00
Результат = OPI_Bitrix24.ПрекратитьНаблюдатьЗаЗадачей(URL, IDЗадачи, Токен);
```
2024-08-13 16:03:53 +03:00
```sh title="Пример команды CLI"
oint bitrix24 ПрекратитьНаблюдатьЗаЗадачей --url "b24-ar17wx.bitrix24.by" --task "170" --token "b9df7366006e9f06006b12e400000001000..."
```
```json title="Результат"
2024-08-14 09:06:31 +03:00
{
"result": {
"task": {
2024-10-06 21:51:35 +03:00
"id": "2328",
"title": "Другой заголовок задачи",
"description": "Другое описание задачи",
2024-10-06 21:51:35 +03:00
"descriptionInBbcode": "Y",
"declineReason": "",
"priority": "1",
"notViewed": "N",
2024-10-06 21:51:35 +03:00
"statusComplete": "1",
"multitask": "N",
"stageId": "0",
2024-10-06 21:51:35 +03:00
"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",
2024-10-06 21:51:35 +03:00
"createdByName": "Антон",
"createdByLastName": "Титовец",
"createdBySecondName": null,
"createdByLogin": "VKuser657846756",
"createdByWorkPosition": null,
"createdByPhoto": "30",
"createdDate": "2024-10-06T17:32:24+03:00",
"changedBy": "1",
2024-10-06 21:51:35 +03:00
"changedDate": "2024-10-06T17:32:37+03:00",
"statusChangedBy": "1",
"closedBy": "0",
"closedDate": null,
2024-10-06 21:51:35 +03:00
"activityDate": "2024-10-06T17:32:36+03:00",
"guid": "{d04b1de9-17bb-4e65-bba4-6c19ad2063f3}",
"xmlId": null,
2024-10-06 21:51:35 +03:00
"mark": null,
"allowChangeDeadline": "N",
"allowTimeTracking": "N",
2024-10-06 21:51:35 +03:00
"matchWorkTime": "N",
"taskControl": "N",
"addInReport": "N",
2024-10-06 21:51:35 +03:00
"forumTopicId": "1622",
"parentId": null,
"commentsCount": "3",
"serviceCommentsCount": "3",
"forumId": "11",
"siteId": "s1",
"subordinate": "N",
"exchangeModified": null,
"exchangeId": null,
2024-10-06 21:51:35 +03:00
"outlookVersion": "9",
"viewedDate": "2024-10-06T17:32:36+03:00",
"deadlineCounted": "0",
"forkedByTemplateId": null,
"sorting": null,
2024-10-06 21:51:35 +03:00
"durationPlanSeconds": null,
"durationTypeAll": "days",
"scenarioName": [
"default"
],
"isRegular": "N",
"flowId": null,
"isMuted": "N",
"isPinned": "N",
"isPinnedInGroup": "N",
2024-10-06 21:51:35 +03:00
"ufCrmTask": false,
"ufTaskWebdavFiles": false,
"ufMailMessage": null,
"status": "3",
2024-10-06 21:51:35 +03:00
"statusChangedDate": "2024-10-06T17:32:36+03:00",
"durationPlan": null,
"durationType": "days",
"favorite": "N",
"groupId": "0",
"auditors": [],
"accomplices": [],
2024-10-06 21:51:35 +03:00
"tags": [],
"checklist": [],
2024-10-06 21:51:35 +03:00
"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": {
2024-10-06 21:51:35 +03:00
"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,
2024-10-06 21:51:35 +03:00
...
```