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/yg2...";
TaskID = "3614";
Text = "Task impossible, let's split up";
Result = OPI_Bitrix24.AddTaskComment(URL, TaskID, Text);
URL = "b24-ar17wx.bitrix24.by";
Token = "2f4e4067006e9f06006b12e400000001000...";
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 "3654" \
--text "Task uninpossible, don't split up" \
--token "***"
oint bitrix24 AddTaskComment ^
--url "b24-ar17wx.bitrix24.by" ^
--task "3654" ^
--text "Task uninpossible, don't split up" ^
--token "***"
Result
{
"result": 5946,
"time": {
"start": 1728454794.0873,
"finish": 1728454794.25203,
"duration": 0.164731025695801,
"processing": 0.141225099563599,
"date_start": "2024-10-09T09:19:54+03:00",
"date_finish": "2024-10-09T09:19:54+03:00",
"operating_reset_at": 1728455394,
"operating": 0.141186952590942
}
}