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);
    }
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);
    }
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 ) ; }
Updates worklog for the issue by issue id or key and worklog id

@link  https://docs.atlassian.com/jira/REST/latest/#d2e1843

@param  integer|string $idOrKey
@param  integer        $worklogId
@param  array          $data
@param  string         $adjustEstimate
@param  string         $newEstimate

@return \GuzzleHttp\Message\Response
Updates worklog for the issue by issue id or key and worklog id