---
sidebar_position: 27
description: Get structure of tasks filter and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get structure of tasks filter
 Return filter structure for GetTasksList



`Function GetTasksFilterStructure(Val Clear = False, Val AsMap = False) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Clear | --empty | Boolean | &#x2716; | True > structure with empty valuse, False > field descriptions at values |
  | AsMap | --map | Boolean | &#x2716; | True > returns the filter fields as a map |

  
  Returns:  Structure Of KeyAndValue - Fields structure

:::tip
Returning fields as a map allows you to specify the filtering type before the filtered field name

Types of filtration: !, &lt;, &lt;=, &gt;, &gt;=. For example: !ID:3 (ID not equal to 3)
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    Clear  = False;
    Result = OPI_Bitrix24.GetTasksFilterStructure(Clear);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint bitrix24 GetTasksFilterStructure \
             --empty false
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint bitrix24 GetTasksFilterStructure ^
             --empty false
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "ID": "<task identifier>",
 "PARENT_ID": "<parent task identifier>",
 "GROUP_ID": "<workgroup identifier>",
 "CREATED_BY": "<producer>",
 "STATUS_CHANGED_BY": "<the user who last changed the task status>",
 "PRIORITY": "<priority>",
 "FORUM_TOPIC_ID": "<forum topic identifier>",
 "RESPONSIBLE_ID": "<performer>",
 "TITLE": "<task name (can be searched using the template [%_])>",
 "TAG": "<tag>",
 "REAL_STATUS": "<task status>",
 "MARK": "<mark>",
 "SITE_ID": "<site identifier>",
 "ADD_IN_REPORT": "<task in the report (Y|N)>",
 "DATE_START": "<start date>",
 "DEADLINE": "<deadline>",
 "CREATED_DATE": "<date of creation>",
 "CLOSED_DATE": "<completion date>",
 "CHANGED_DATE": "<date of last modification>",
 "ACCOMPLICE": "<co-executor identifier>",
 "AUDITOR": "<auditor identifier>",
 "DEPENDS_ON": "<previous task identifier>",
 "ONLY_ROOT_TASKS": "<only tasks that are not subtasks (Y|N)>",
 "STAGE_ID": "<stage>",
 "UF_CRM_TASK": "<CRM elements>",
 "STATUS": "<status for sorting. Similar to REAL_STATUS, but has three additional meta-statuses>"
}
```
