Answer the question
In order to leave comments, you need to log in
How to specify the deadline in the Bitrix24 task via rest?
Hello.
I'm now setting up automatic creation of a task through rest.
Everything works, the task is created, but there is one catch - I don’t know how to set the deadline ((
Below is an example of an array of data that is sent when calling the rest method tasks.task.add
:
$taskParams = [
'fields' => [
'TITLE' => $TITLE, // название задачи
'ALLOW_TIME_TRACKING' => 'Y', // включить учёт времени
'ALLOW_CHANGE_DEADLINE' => 'N', // разрешить ответственному менять сроки
'TASK_CONTROL' => 'Y', // принять после завершения
'RESPONSIBLE_ID' => $ID, // ответственный
'DESCRIPTION' => $desc, // описание
'UF_CRM_TASK' => [$UF_CRM_TASK],
'ADD_IN_REPORT' => 'Y',
]
];
DEADLINE
, which is written in the ISO 8601 format (for example, 2019-06-18T01:43:46+03:00 ). And here's how to add 1-2 days to it, I can't figure it out. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question