public function updateWorklog($idOrKey, $worklogId, array $data, $adjustEstimate = null, $newEstimate = null)
    {
        $parameters = http_build_query(
            [
                'adjustEstimate' => $adjustEstimate,
                'newEstimate'    => $newEstimate,
            ]
        );

        if ($parameters) {
            $parameters = sprintf('?%s', $parameters);
        }

        return $this->putRequest(sprintf('issue/%s/worklog/%s%s', $idOrKey, $worklogId, $parameters), $data);
    }