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 = "7888";
Text = "Task impossible, let's split up";
Result = OPI_Bitrix24.AddTaskComment(URL, TaskID, Text);
URL = "b24-ar17wx.bitrix24.by";
Token = "75d8c668006e9f06006b12e400000001000...";
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 ""7994"" \
--text ""Task uninpossible, don't split up"" \
--token "***"
oint bitrix24 AddTaskComment ^
--url ""b24-ar17wx.bitrix24.by"" ^
--task ""7994"" ^
--text ""Task uninpossible, don't split up"" ^
--token "***"
Result
{
"result": 18616,
"time": {
"start": 1757976455.56327,
"finish": 1757976455.72751,
"duration": 0.164247035980225,
"processing": 0.141475915908813,
"date_start": "2025-09-15T22:47:35+00:00",
"date_finish": "2025-09-15T22:47:35+00:00",
"operating_reset_at": 1757977055,
"operating": 0.141458034515381
}
}