N
N
Nentra2021-09-29 08:30:22
Bitrix24
Nentra, 2021-09-29 08:30:22

Bitrix24 task closing event - what is this event called?

Bitrix24 task closing event - what is this event called?

here it is not here
https://dev.1c-bitrix.ru/api_help/tasks/events/ind...
the closest in meaning is
OnTaskUpdate After updating the task.

but I need an event that fires after the task is closed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kudis, 2021-09-29
@kudis

There is nothing else there. Use `OnTaskUpdate`
It has everything you need
in the handler will come 2 parameters $iTaskId and $arFields
inside will be the current status $arFields['STATUS'] when it is equal to CTasks::STATE_COMPLETED and not equal to $arFields['META: PREV_FIELDS']['STATUS'] , it means that the status has changed to closed
Then everything is in your hands

V
Vyacheslav Zhgilev, 2021-10-10
@jazzz

Date of completion!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question