public function setWorklog($date, $ticket, $timeSpent, $comment = '')
    {
        $this->uri = "{$this->site}/rest/api/2/issue/{$ticket}/worklog";

        if (is_numeric($timeSpent)) {
            $timeSpent .= 'h';
        }

        $startedDate = $this->_formatTimestamp($date);
        $data = [
            'timeSpent' => $timeSpent,
            'started' => $startedDate,
            'comment' => $comment
        ];

        $this->output->debug(print_r($data, true));
        $data = json_encode($data);

        $response = $this->processRequest($data);
        $this->_handleError($data, $response);
        return $response;
    }