View Task Change History task.logitem.list
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Scope:
taskWho can execute the method: any user
DEPRECATED
The development of this method has been halted. Please use tasks.task.history.list.
This method returns the history of changes for a task.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
ID* |
Task identifier |
Code Examples
How to Use Examples in Documentation
cURL (Webhook)
cURL (OAuth)
JS
PHP
BX24.js
PHP CRest
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"taskId":1205}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/task.logitem.list
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"taskId":1205,"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/task.logitem.list
// callListMethod: Retrieves all data at once. Use only for small datasets (< 1000 items) due to high memory load.
try {
const response = await $b24.callListMethod(
'task.logitem.list',
[1205],
(progress) => { console.log('Progress:', progress) }
)
const items = response.getData() || []
for (const entity of items) { console.log('Entity:', entity) }
} catch (error) {
console.error('Request failed', error)
}
// fetchListMethod: Retrieves data in chunks using an iterator. Use for large datasets for efficient memory consumption.
try {
const generator = $b24.fetchListMethod('task.logitem.list', [1205], 'ID')
for await (const page of generator) {
for (const entity of page) { console.log('Entity:', entity) }
}
} catch (error) {
console.error('Request failed', error)
}
// callMethod: Manually controls pagination through the start parameter. Use for precise control over request batches. Less efficient for large data than fetchListMethod.
try {
const response = await $b24.callMethod('task.logitem.list', [1205], 0)
const result = response.getData().result || []
for (const entity of result) { console.log('Entity:', entity) }
} catch (error) {
console.error('Request failed', error)
}
try {
$response = $b24Service
->core
->call(
'task.logitem.list',
[1205]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
// Your logic for processing data
processData($result);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error fetching task log items: ' . $e->getMessage();
}
BX24.callMethod(
'task.logitem.list',
[1205],
function(result){
console.info(result.data());
console.log(result);
}
);
require_once('crest.php');
$result = CRest::call(
'task.logitem.list',
['taskId' => 1205]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
HTTP Status: 200
Array
(
[result] => Array
(
[0] => Array
(
[CREATED_DATE] => 2022-12-09T11:10:49+02:00
[USER_ID] => 1
[TASK_ID] => 1223
[FIELD] => NEW
[FROM_VALUE] =>
[TO_VALUE] =>
)
[1] => Array
(
[CREATED_DATE] => 2022-12-09T11:11:29+02:00
[USER_ID] => 1
[TASK_ID] => 1223
[FIELD] => COMMENT
[FROM_VALUE] =>
[TO_VALUE] => 1247
)
[2] => Array
(
[CREATED_DATE] => 2022-12-09T11:11:40+02:00
[USER_ID] => 1
[TASK_ID] => 1223
[FIELD] => TAGS
[FROM_VALUE] =>
[TO_VALUE] => this is confidential
)
)
[time] => Array
(
[start] => 1670577445.3012
[finish] => 1670577447.9552
[duration] => 2.6539649963379
[processing] => 2.2574801445007
[date_start] => 2022-12-09T11:17:25+02:00
[date_finish] => 2022-12-09T11:17:27+02:00
[operating] => 2.2573609352112
)
)
Copied
Previous
Next