Add comment to task
Create new comment to the task
Function AddTaskComment(Val URL, Val TaskID, Val Text, Val Token = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
| TaskID | --task | Number, String | ✔ | Task ID |
| Text | --text | String | ✔ | Comment text |
| Token | --token | String | ✖ | Access token, when app auth method used |
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
tip
Method at API documentation: task.commentitem.add
1C:Enterprise/OneScript code example
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
TaskID = "8354";
Text = "Task impossible, let's split up";
Result = OPI_Bitrix24.AddTaskComment(URL, TaskID, Text);
URL = "b24-ar17wx.bitrix24.by";
Token = "8a1bee68006e9f06006b12e400000001000...";
Text = "Task uninpossible, don't split up";
Result = OPI_Bitrix24.AddTaskComment(URL, TaskID, Text, Token);
- Bash
- CMD/Bat
oint bitrix24 AddTaskComment \
--url "b24-ar17wx.bitrix24.by" \
--task "8404" \
--text "Task uninpossible, don't split up" \
--token "***"
oint bitrix24 AddTaskComment ^
--url "b24-ar17wx.bitrix24.by" ^
--task "8404" ^
--text "Task uninpossible, don't split up" ^
--token "***"
Result
{
"result": 19524,
"time": {
"start": 1760521951,
"finish": 1760521952.0401,
"duration": 1.04009699821472,
"processing": 1,
"date_start": "2025-10-15T09:52:31+00:00",
"date_finish": "2025-10-15T09:52:32+00:00",
"operating_reset_at": 1760522551,
"operating": 0.320261001586914
}
}