1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-29 00:51:51 +02:00
Files
OpenIntegrations/docs/en/md/Bitrix24/Tasks-managment/Get-task-fields-structure.md
Vitaly the Alpaca (bot) 9c977d53e1 Main build (Jenkins)
2024-10-06 16:55:08 +03:00

4.3 KiB

sidebar_position
sidebar_position
26

Get task fields structure

Gets a structure with a description of the fields for creating a task

Function GetTaskFieldsStructure(Val URL, Val Token = "") Export

Parameter CLI option Type Description
URL --url String URL of webhook or a Bitrix24 domain, when token used
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: tasks.task.getFields :::

    URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";

    Result = OPI_Bitrix24.GetTaskFieldsStructure(URL);

    URL   = "b24-ar17wx.bitrix24.by";
    Token = "37d1fe66006e9f06006b12e400000001000...";

    Result = OPI_Bitrix24.GetTaskFieldsStructure(URL, Token);
    
  oint bitrix24 GetTaskFieldsStructure --url "b24-ar17wx.bitrix24.by" --token "fe3fa966006e9f06006b12e400000001000..."

{
 "result": {
  "fields": {
   "ID": {
    "title": "ID",
    "type": "integer",
    "primary": true
   },
   "PARENT_ID": {
    "title": "ID базовой задачи",
    "type": "integer",
    "default": 0
   },
   "TITLE": {
    "title": "Название",
    "type": "string",
    "required": true
   },
   "DESCRIPTION": {
    "title": "Описание",
    "type": "string"
   },
   "MARK": {
    "title": "Оценка",
    "type": "enum",
    "values": {
     "N": "Отрицательная",
     "P": "Положительная"
    },
    "default": null
   },
   "PRIORITY": {
    "title": "Приоритет",
    "type": "enum",
    "values": {
     "2": "Высокий",
     "1": "Средний",
     "0": "Низкий"
    },
    "default": 1
   },
   "STATUS": {
    "title": "Статус",
    "type": "enum",
    "values": {
     "2": "Ждёт выполнения",
     "3": "Выполняется",
     "4": "Ожидает контроля",
     "5": "Завершена",
     "6": "Отложена"
    },
    "default": 2
   },
   "MULTITASK": {
    "title": "Множественная задача",
    "type": "enum",
    "values": {
     "Y": "Да",
     "N": "Нет"
    },
    "default": "N"
   },
   "NOT_VIEWED": {
    "title": null,
    "type": "enum",
    "values": {
     "Y": "Да",
     "N": "Нет"
    },
    "default": "N"
   },
   "REPLICATE": {
    "title": "Повторяемая задача",
    "type": "enum",
    "values": {
     "Y": "Да",
     "N": "Нет"
    },
    "default": "N"
   },
   "GROUP_ID": {
    "title": "Проект",
    "type": "integer",
    "default": 0
   },
   "STAGE_ID": {
    "title": "Стадия",
    "type": "integer",
    "default": 0
   },
   "CREATED_BY": {
    "title": "Постановщик",
    "type": "integer",
    "required": true
   },
   "CREATED_DATE": {
    "title": null,
    "type": "datetime"
   },
   "RESPONSIBLE_ID": {
    "title": "Исполнитель",
    "type": "integer",
    "required": true
   },
   "ACCOMPLICES": {
    "title": null,
    "type": "array"
   },
   "AUDITORS": {
    "title": null,
    "type": "array"
   },
   "CHANGED_BY": {
    "title": "Изменил",
    "type": "integer"
   },
   "CHANGED_DATE": {
    "title": "Дата изменения",
    "type": "datetime"
   },
   "STATUS_CHANGED_BY": {
    "title": "Изменил статус",
    "type": "integer"
   },
   "STATUS_CHANGED_DATE": {
    "title": "Дата изменения статуса",
    "type": "datetime"
   },
   "CLOSED_BY": {
    "title": "Закрыл задачу",
    "type": "integer",
    "default": null
   },
   "CLOSED_DATE": {
    "title": "Дата закрытия",
    "type": "datetime",
    "default": null
   },
   "ACTIVITY_DATE": {
    "title": null,
    "type": "datetime",
    "default": null
   },
   "DATE_START": {
    "title": "Дата начала",
    "type": "datetime",
    "default": null
   },
   "DEADLINE": {
    "title": "Крайний срок",
...