13 public static function getData(
int $sourceId): ?array
16 \
Bitrix\Main\Loader::includeModule(
'tasks') &&
17 \
Bitrix\Main\Loader::includeModule(
'forum')
20 $res = MessageTable::getList([
22 'TOPIC_ID',
'POST_MESSAGE'
30 if ($comment = $res->fetch())
32 [$tasks, ] = \CTaskItem::fetchList(
35 [
'FORUM_TOPIC_ID' => $comment[
'TOPIC_ID']]
40 $taskData = $tasks[0]->getData();
43 'content' => $taskData[
'TITLE']
45 if (\
Bitrix\Main\Loader::includeModule(
'disk'))
55 $blocks = array_merge(
60 'TITLE' => \truncateText($taskData[
'TITLE'], self::TITLE_LENGTH),