Add kanban stage
Add new stage of kanban or My Plan
Function AddKanbanStage(Val URL, Val Name, Val Color = "FFD800", Val PrevStageID = 0, Val EntityID = 0, Val AsAdmin = False, Val Token = "") Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
Name | --title | String | ✔ | New stage name |
Color | --color | String | ✖ | HEX of new stage color |
PrevStageID | --prevstage | String, Number | ✖ | ID of the stage after which a new stage should be inserted (at the beginning by default.) |
EntityID | --entityid | String, Number | ✖ | ID of kanban owner (group or user) |
AsAdmin | --admin | Boolean | ✖ | Allows you to add stages without checking permissions (for administrators) |
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.stages.add
1C:Enterprise/OneScript code example
Name = "New stage";
Color = "0026FF";
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
Result = OPI_Bitrix24.AddKanbanStage(URL, Name, Color, 6);
Name = "New stage 2";
Color = "0026FF";
URL = "b24-ar17wx.bitrix24.by";
Token = "75d8c668006e9f06006b12e400000001000...";
PrevStageID = Result["result"];
Result = OPI_Bitrix24.AddKanbanStage(URL, Name, Color, PrevStageID, , True, Token);
- Bash
- CMD/Bat
oint bitrix24 AddKanbanStage \
--url ""b24-ar17wx.bitrix24.by"" \
--title ""New stage 2"" \
--color ""0026FF"" \
--prevstage "2926" \
--admin "true" \
--token "***"
oint bitrix24 AddKanbanStage ^
--url ""b24-ar17wx.bitrix24.by"" ^
--title ""New stage 2"" ^
--color ""0026FF"" ^
--prevstage "2926" ^
--admin "true" ^
--token "***"
Result
{
"result": 2928,
"time": {
"start": 1757976651.04211,
"finish": 1757976651.11126,
"duration": 0.0691490173339844,
"processing": 0.0452969074249268,
"date_start": "2025-09-15T22:50:51+00:00",
"date_finish": "2025-09-15T22:50:51+00:00",
"operating_reset_at": 1757977251,
"operating": 0
}
}