Skip to main content

Get kanban stages

Get kanban (My Plan) stages info

Function GetKanbanStages(Val URL, Val EntityID = 0, Val AsAdmin = False, Val Token = "") Export

ParameterCLI optionTypeRequiredDescription
URL--urlStringURL of webhook or a Bitrix24 domain, when token used
EntityID--entityidString, NumberID of kanban owner (group or user)
AsAdmin--adminBooleanAllows you to get stages without checking permissions (for administrators)
Token--tokenStringAccess token, when app auth method used

Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API


tip

Method at API documentation: task.stages.get


1C:Enterprise/OneScript code example
    URL = "https://b24-ar17wx.bitrix24.by/rest/1/yg2...";

Result = OPI_Bitrix24.GetKanbanStages(URL, , True);

URL = "b24-ar17wx.bitrix24.by";
Token = "2f4e4067006e9f06006b12e400000001000...";

Result = OPI_Bitrix24.GetKanbanStages(URL, , , Token);
    oint bitrix24 GetKanbanStages \
--url "b24-ar17wx.bitrix24.by" \
--token "***"
Result
{
"result": {
"142": {
"ID": "142",
"TITLE": "Новое имя стадии стадии",
"SORT": "100",
"COLOR": "000000",
"SYSTEM_TYPE": "NEW",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"20": {
"ID": "20",
"TITLE": "Новая стадия",
"SORT": "200",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"24": {
"ID": "24",
"TITLE": "Название",
"SORT": "300",
"COLOR": "75d900",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"16": {
"ID": "16",
"TITLE": "Новая стадия",
"SORT": "400",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"18": {
"ID": "18",
"TITLE": "Новая стадия 2",
"SORT": "500",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"12": {
"ID": "12",
"TITLE": "Новая стадия",
"SORT": "600",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"14": {
"ID": "14",
"TITLE": "Новая стадия 2",
"SORT": "700",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"8": {
"ID": "8",
"TITLE": "Новая стадия",
"SORT": "800",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"10": {
"ID": "10",
"TITLE": "Новая стадия 2",
"SORT": "900",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"6": {
"ID": "6",
"TITLE": "Новая стадия",
"SORT": "1000",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"844": {
"ID": "844",
"TITLE": "New stage",
"SORT": "1100",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"846": {
"ID": "846",
"TITLE": "New stage 2",
"SORT": "1200",
"COLOR": "0026FF",
"SYSTEM_TYPE": "",
"ENTITY_ID": "1",
"ENTITY_TYPE": "U",
"ADDITIONAL_FILTER": [],
"TO_UPDATE": [],
"TO_UPDATE_ACCESS": null
},
"720": {
"ID": "720",
"TITLE": "Новая стадия",
"SORT": "1300",
...