Bitrix24\Task\CommentItem::add PHP Method

add() public method

Creates a new comment to a task. Returns the identifier to the comment added.
See also: http://www.bitrixsoft.com/rest_help/tasks/task/commentitem/add.php
public add ( $taskId, $fields ) : array
$taskId integer Task identifier. Required parameter.
$fields array Data field array for a task (POST_MESSAGE). Required parameter.
return array
    public function add($taskId, $fields)
    {
        $result = $this->client->call('task.commentitem.add', array('TASKID' => $taskId, 'arFields' => $fields));
        return $result;
    }