Skip to main content

Get task history

Get history of task changing

Function GetTaskHistory(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.history.list


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

Result = OPI_Bitrix24.GetTaskHistory(URL, TaskID);

URL = "b24-ar17wx.bitrix24.by";
Token = "53100369006e9f06006b12e400000001000...";
TaskID = "8620";

Result = OPI_Bitrix24.GetTaskHistory(URL, TaskID, Token);
    oint bitrix24 GetTaskHistory \
--url "b24-ar17wx.bitrix24.by" \
--task "8670" \
--token "***"
Result
{
"result": {
"list": [
{
"id": 110288,
"createdDate": "2025-10-31T11:52:31+00:00",
"field": "NEW",
"value": {
"from": null,
"to": null
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110290,
"createdDate": "2025-10-31T11:52:32+00:00",
"field": "START_DATE_PLAN",
"value": {
"from": "",
"to": "1761911551"
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110292,
"createdDate": "2025-10-31T11:52:32+00:00",
"field": "END_DATE_PLAN",
"value": {
"from": "",
"to": "1761944400"
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110294,
"createdDate": "2025-10-31T11:52:32+00:00",
"field": "DURATION_PLAN_SECONDS",
"value": {
"from": "",
"to": "32849"
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110308,
"createdDate": "2025-10-31T11:52:38+00:00",
"field": "TITLE",
"value": {
"from": "New task",
"to": "Another task title"
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110310,
"createdDate": "2025-10-31T11:52:38+00:00",
"field": "DESCRIPTION",
"value": {
"from": "",
"to": ""
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110312,
"createdDate": "2025-10-31T11:52:38+00:00",
"field": "PRIORITY",
"value": {
"from": "2",
"to": "1"
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110318,
"createdDate": "2025-10-31T11:52:52+00:00",
"field": "RESPONSIBLE_ID",
"value": {
"from": "1",
"to": "2956"
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110320,
"createdDate": "2025-10-31T11:52:52+00:00",
"field": "COMMENT",
"value": {
"from": null,
"to": "20212"
},
"user": {
"id": 1,
"name": "Антон",
"lastName": "Титовец",
"secondName": "",
"login": "VKuser657846756"
}
},
{
"id": 110324,
"createdDate": "2025-10-31T11:52:54+00:00",
...