2024-06-20 09:39:55 +02:00
|
|
|
---
|
|
|
|
sidebar_position: 20
|
|
|
|
---
|
|
|
|
|
|
|
|
# Get comments list for a task
|
|
|
|
Get user comments list for a task
|
|
|
|
|
|
|
|
|
|
|
|
*Function GetTaskCommentsList(Val URL, Val TaskID, Val Filter = "", Val Token = "") Export*
|
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Destination |
|
|
|
|
|-|-|-|-|
|
|
|
|
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
|
|
|
|
| TaskID | --task | Number, String | Task ID |
|
|
|
|
| Filter | --filter | Structure of Key-Value | Comments filter structure (see GetCommentsFilterStructure) |
|
|
|
|
| Token | --token | String | Access token, when not-webhook method used |
|
|
|
|
|
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
|
|
|
|
|
|
|
|
```bsl title="Code example"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```sh title="CLI command example"
|
|
|
|
|
2024-06-21 08:25:14 +02:00
|
|
|
oint bitrix24 GetTaskCommentsList --url %url% --task %task% --filter %filter% --token %token%
|
2024-06-20 09:39:55 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|