Skip to main content

Renew task

Returns a task to work by ID

Function RenewTask(Val URL, Val TaskID, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
TaskID--taskNumber, StringTask ID
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: tasks.task.renew


1C:Enterprise/OneScript code example
    URL    = "https://b24-ar17wx.bitrix24.by/rest/1/yg2...";
TaskID = "3610";

Result = OPI_Bitrix24.RenewTask(URL, TaskID);

URL = "b24-ar17wx.bitrix24.by";
Token = "2f4e4067006e9f06006b12e400000001000...";
TaskID = "3612";

Result = OPI_Bitrix24.RenewTask(URL, TaskID, Token);
    oint bitrix24 RenewTask \
--url "b24-ar17wx.bitrix24.by" \
--task "3652" \
--token "***"
Result
{
"result": {
"task": {
"id": "2398",
"parentId": null,
"title": "Another task title",
"description": "Another task description",
"mark": null,
"priority": "1",
"multitask": "N",
"notViewed": "N",
"replicate": "N",
"stageId": "0",
"createdBy": "1",
"createdDate": "2024-10-09T09:19:28+03:00",
"responsibleId": "602",
"changedBy": "1",
"changedDate": "2024-10-09T09:19:41+03:00",
"statusChangedBy": "1",
"closedBy": "0",
"closedDate": null,
"activityDate": "2024-10-09T09:19:41+03:00",
"dateStart": null,
"deadline": "2024-10-10T12:19:00+03:00",
"startDatePlan": "2024-10-09T09:19:28+03:00",
"endDatePlan": "2024-10-10T00:00:00+03:00",
"guid": "{51464df0-4e32-4fbe-9e9c-5d7081eb0ffb}",
"xmlId": null,
"commentsCount": "3",
"serviceCommentsCount": "3",
"allowChangeDeadline": "N",
"allowTimeTracking": "N",
"taskControl": "N",
"addInReport": "N",
"forkedByTemplateId": null,
"timeEstimate": "0",
"timeSpentInLogs": null,
"matchWorkTime": "N",
"forumTopicId": "1664",
"forumId": "11",
"siteId": "s1",
"subordinate": "N",
"exchangeModified": null,
"exchangeId": null,
"outlookVersion": "7",
"viewedDate": "2024-10-09T09:19:41+03:00",
"sorting": null,
"durationFact": null,
"isMuted": "N",
"isPinned": "N",
"isPinnedInGroup": "N",
"flowId": null,
"descriptionInBbcode": "Y",
"status": "2",
"statusChangedDate": "2024-10-09T09:19:41+03:00",
"durationPlan": null,
"durationType": "days",
"favorite": "N",
"groupId": "0",
"auditors": [],
"accomplices": [],
"checklist": [],
"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": "602",
"name": "Oleg Lama",
"link": "/company/personal/user/602/",
"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": true,
"pause": false,
"delegate": true,
"remove": true,
"edit": true,
"defer": true,
"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,
"completedCount": 0,
"members": [],
"attachments": []
},
"action": [],
"descendants": []
},
"checkListCanAdd": true
}
},
"time": {
"start": 1728454781.248,
"finish": 1728454781.64283,
"duration": 0.394833087921143,
"processing": 0.365943908691406,
"date_start": "2024-10-09T09:19:41+03:00",
"date_finish": "2024-10-09T09:19:41+03:00",
"operating_reset_at": 1728455381,
"operating": 0.365924119949341
}
}