Get the list of tasks tasks.task.list
Scope:
taskWho can execute the method: any user
The method tasks.task.list retrieves a list of tasks with pagination.
Access to the data depends on permissions:
- administrators see all tasks,
- managers see their employees' tasks,
- others see only the tasks available to them.
Method Parameters
|
Name |
Description |
|
order |
An object for sorting the list of tasks in the format The sorting direction can take the following values:
By default — descending by The field for sorting can take the following values:
|
|
filter |
An object for filtering the list of tasks in the format
To get tasks from Favorites, add the filter parameter Before the name of the filterable field, you can specify the type of filtering:
By default, records are not filtered |
|
select |
An array containing a list of fields to be selected. By default, the system returns only those fields stored in the record — without additional data calculated on the fly. Warning Always specify fields in |
|
params |
Additional information that can be retrieved about the task:
|
|
start |
This parameter is used to control pagination. The page size of results is always static — 50 records. To select the second page of results, you need to pass the value The formula for calculating the value of the
|
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"order":{"DEADLINE":"asc","PRIORITY":"desc"},"filter":{"!STATUS":6,">=DEADLINE":"'"$(date +%Y-%m-%d)"'","RESPONSIBLE_ID":547,"::SUBFILTER-PARAMS":{"FAVORITE":"Y"}},"select":["ID","TITLE","DESCRIPTION","STATUS","subStatus","DEADLINE","CREATED_DATE","RESPONSIBLE_ID","ACCOMPLICES","AUDITORS","TAGS","COUNTERS","PRIORITY","MARK"],"params":{"WITH_TIMER_INFO":true,"WITH_RESULT_INFO":true,"WITH_PARSED_DESCRIPTION":true}}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/tasks.task.list
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"order":{"DEADLINE":"asc","PRIORITY":"desc"},"filter":{"!STATUS":6,">=DEADLINE":"'"$(date +%Y-%m-%d)"'","RESPONSIBLE_ID":547,"::SUBFILTER-PARAMS":{"FAVORITE":"Y"}},"select":["ID","TITLE","DESCRIPTION","STATUS","subStatus","DEADLINE","CREATED_DATE","RESPONSIBLE_ID","ACCOMPLICES","AUDITORS","TAGS","COUNTERS","PRIORITY","MARK"],"params":{"WITH_TIMER_INFO":true,"WITH_RESULT_INFO":true,"WITH_PARSED_DESCRIPTION":true},"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/tasks.task.list
// callListMethod: Retrieves all data at once.
// Use only for small selections (< 1000 items) due to high
// memory load.
try {
const response = await $b24.callListMethod(
'tasks.task.list',
{
order: {
'DEADLINE': 'asc',
'PRIORITY': 'desc'
},
filter: {
'!STATUS': 6,
'>=DEADLINE': new Date().toISOString().split('T')[0],
'RESPONSIBLE_ID': 547,
'::SUBFILTER-PARAMS': { 'FAVORITE': 'Y' }
},
select: [
'ID', 'TITLE', 'DESCRIPTION', 'STATUS', 'subStatus',
'DEADLINE', 'CREATED_DATE', 'RESPONSIBLE_ID',
'ACCOMPLICES', 'AUDITORS', 'TAGS', 'COUNTERS',
'PRIORITY', 'MARK'
],
params: {
'WITH_TIMER_INFO': true,
'WITH_RESULT_INFO': true,
'WITH_PARSED_DESCRIPTION': true,
},
},
(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 parts using an iterator.
// Use for large volumes of data for efficient memory consumption.
try {
const generator = $b24.fetchListMethod('tasks.task.list', {
order: {
'DEADLINE': 'asc',
'PRIORITY': 'desc'
},
filter: {
'!STATUS': 6,
'>=DEADLINE': new Date().toISOString().split('T')[0],
'RESPONSIBLE_ID': 547,
'::SUBFILTER-PARAMS': { 'FAVORITE': 'Y' }
},
select: [
'ID', 'TITLE', 'DESCRIPTION', 'STATUS', 'subStatus',
'DEADLINE', 'CREATED_DATE', 'RESPONSIBLE_ID',
'ACCOMPLICES', 'AUDITORS', 'TAGS', 'COUNTERS',
'PRIORITY', 'MARK'
],
params: {
'WITH_TIMER_INFO': true,
'WITH_RESULT_INFO': true,
'WITH_PARSED_DESCRIPTION': true,
},
}, 'ID');
for await (const page of generator) {
for (const entity of page) { console.log('Entity:', entity) }
}
} catch (error) {
console.error('Request failed', error)
}
// callMethod: Manual control of 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('tasks.task.list', {
order: {
'DEADLINE': 'asc',
'PRIORITY': 'desc'
},
filter: {
'!STATUS': 6,
'>=DEADLINE': new Date().toISOString().split('T')[0],
'RESPONSIBLE_ID': 547,
'::SUBFILTER-PARAMS': { 'FAVORITE': 'Y' }
},
select: [
'ID', 'TITLE', 'DESCRIPTION', 'STATUS', 'subStatus',
'DEADLINE', 'CREATED_DATE', 'RESPONSIBLE_ID',
'ACCOMPLICES', 'AUDITORS', 'TAGS', 'COUNTERS',
'PRIORITY', 'MARK'
],
params: {
'WITH_TIMER_INFO': true,
'WITH_RESULT_INFO': true,
'WITH_PARSED_DESCRIPTION': true,
},
}, 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(
'tasks.task.list',
[
'order' => [
'DEADLINE' => 'asc',
'PRIORITY' => 'desc'
],
'filter' => [
'!STATUS' => 6,
'>=DEADLINE' => date('Y-m-d'),
'RESPONSIBLE_ID' => 547,
'::SUBFILTER-PARAMS' => ['FAVORITE' => 'Y']
],
'select' => [
'ID', 'TITLE', 'DESCRIPTION', 'STATUS', 'subStatus',
'DEADLINE', 'CREATED_DATE', 'RESPONSIBLE_ID',
'ACCOMPLICES', 'AUDITORS', 'TAGS', 'COUNTERS',
'PRIORITY', 'MARK'
],
'params' => [
'WITH_TIMER_INFO' => true,
'WITH_RESULT_INFO' => true,
'WITH_PARSED_DESCRIPTION' => true,
],
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
processData($result);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error fetching tasks: ' . $e->getMessage();
}
BX24.callMethod(
'tasks.task.list',
{
// Sorting
order: {
'DEADLINE': 'asc',
'PRIORITY': 'desc'
},
// Filtering
filter: {
'!STATUS': 6, // Exclude postponed
'>=DEADLINE': new Date().toISOString().split('T')[0], // Not overdue
'RESPONSIBLE_ID': 547, // Tasks of a specific assignee
'::SUBFILTER-PARAMS': { 'FAVORITE': 'Y' } // Favorite tasks
},
// Fields to select
select: [
'ID',
'TITLE',
'DESCRIPTION',
'STATUS',
'subStatus',
'DEADLINE',
'CREATED_DATE',
'RESPONSIBLE_ID',
'ACCOMPLICES',
'AUDITORS',
'TAGS',
'COUNTERS',
'PRIORITY',
'MARK'
],
// Additional parameters
params: {
'WITH_TIMER_INFO': true,
'WITH_RESULT_INFO': true,
'WITH_PARSED_DESCRIPTION': true,
},
},
function(result){
console.info(result.data());
console.log(result);
}
);
require_once('crest.php');
$result = CRest::call(
'tasks.task.list',
[
'order' => [
'DEADLINE' => 'asc',
'PRIORITY' => 'desc'
],
'filter' => [
'!STATUS' => 6,
'>=DEADLINE' => date('Y-m-d'),
'RESPONSIBLE_ID' => 547,
'::SUBFILTER-PARAMS' => ['FAVORITE' => 'Y']
],
'select' => [
'ID', 'TITLE', 'DESCRIPTION', 'STATUS', 'subStatus',
'DEADLINE', 'CREATED_DATE', 'RESPONSIBLE_ID',
'ACCOMPLICES', 'AUDITORS', 'TAGS', 'COUNTERS',
'PRIORITY', 'MARK'
],
'params' => [
'WITH_TIMER_INFO' => true,
'WITH_RESULT_INFO' => true,
'WITH_PARSED_DESCRIPTION' => true,
],
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
HTTP status: 200
{
"result": {
"tasks": [
{
"id": "8017",
"title": "Task example",
"description": "Task description with [B]formatting[/B]",
"deadline": "2025-10-24T19:00:00+02:00",
"createdDate": "2025-06-04T16:15:55+02:00",
"responsibleId": "547",
"priority": "2",
"mark": "",
"descriptionInBbcode": "Y",
"lengthDeadline": "1",
"status": "2",
"auditors": [
"13",
"103"
],
"accomplices": [],
"group": [],
"responsible": {
"id": "547",
"name": "Maria",
"link": "/company/personal/user/547/",
"icon": "/bitrix/images/tasks/default_avatar.png",
"workPosition": "Tester"
},
"accomplicesData": [],
"auditorsData": {
"13": {
"id": "13",
"name": "John Smith",
"link": "/company/personal/user/13/",
"icon": "https://mysite.com/b17053/resize_cache/209/c0120a8d7c10d63c83e32398d1ec4d9e/main/c8dd225a1c6ea0a25722d01644b90fe4/8b.jpg",
"workPosition": "System Administrator"
},
"103": {
"id": "103",
"name": "Emily Smith",
"link": "/company/personal/user/103/",
"icon": "https://mysite.com/b17053/resize_cache/8644/c0120a8d7c10d63c83e32398d1ec4d9e/main/45f/45fff10d17d398a5583184c8350cd197/buh.jpg",
"workPosition": "Accountant"
}
},
"taskRequireResult": "Y",
"taskHasOpenResult": "N",
"taskHasResult": "Y",
"timeElapsed": null,
"timerIsRunningForCurrentUser": "N",
"parsedDescription": "Task description with [B]formatting[/B]",
"counter": {
"counters": {
"expired": 0,
"newComments": 0,
"projectExpired": 0,
"projectNewComments": 0,
"mutedExpired": 0,
"mutedNewComments": 0
},
"color": "gray",
"value": 0
},
"tags": {
"35": {
"id": 35,
"title": "arpar"
}
},
"subStatus": "2"
}
]
},
"total": 1,
"time": {
"start": 1761054322,
"finish": 1761054322.348041,
"duration": 0.3480410575866699,
"processing": 0,
"date_start": "2025-10-21T16:45:22+02:00",
"date_finish": "2025-10-21T16:45:22+02:00",
"operating_reset_at": 1761054922,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
An object with response data |
|
tasks |
An array of objects, where each object contains task description. The set of fields depends on the |
|
total |
Total number of records found |
|
time |
Information about the time taken to execute the request |
Error Handling
HTTP status: 400
{
"error": "0",
"error_description": "Invalid sorting key (internal error)"
}
|
Name |
Description |
|
error |
String error code. It may consist of digits, Latin letters, and underscores |
|
error_description |
Textual description of the error. The description is not intended to be shown to the end user in its raw form |
Possible Error Codes
|
Code |
Description |
Value |
|
|
Invalid sorting key (internal error) |
The |
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred, please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred, please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not allowed to be called using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The methods must be called using the HTTPS protocol |
|
|
|
The REST API is blocked due to overload. This is a manual individual block, to remove it you need to contact Bitrix24 technical support |
|
|
|
The REST API is available only on commercial plans |
|
|
|
The user whose access token or webhook was used to call the method lacks permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the account administrator has allowed access to this application only for specific users |
|
|
|
The public part of the site is closed. To open the public part of the site on an on-premise installation, disable the option "Temporary closure of the public part of the site". Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |
Continue Learning
- Tasks: Overview of Methods
- Add Task tasks.task.add
- Update Task tasks.task.update
- Get Task by ID tasks.task.get
- Delete Task tasks.task.delete
- Get the list of fields tasks.task.getFields
- How to Create a Comment in a Task and Attach a File
- How to Upload a File to a Task
- How to Create a Task with an Attached File