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

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

        return $this->postRequest(sprintf('issue/%s/worklog%s', $idOrKey, $parameters), $data);
    }
public function createWorklog($idOrKey, array $data, $adjustEstimate = null, $newEstimate = null, $reduceBy = null)
    {
        $parameters = http_build_query(
            [
                'adjustEstimate' => $adjustEstimate,
                'newEstimate'    => $newEstimate,
                'reduceBy'       => $reduceBy,
            ]
        );

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

        return $this->postRequest(sprintf('issue/%s/worklog%s', $idOrKey, $parameters), $data);
    }
public function createWorklog ( $ idOrKey , array $ data , $ adjustEstimate = null , $ newEstimate = null , $ reduceBy = null ) { $ parameters = http_build_query ( [ 'adjustEstimate' => $ adjustEstimate , 'newEstimate' => $ newEstimate , 'reduceBy' => $ reduceBy , ] ) ; if ( $ parameters ) { $ parameters = sprintf ( '?%s' , $ parameters ) ; } return $ this -> postRequest ( sprintf ( 'issue/%s/worklog%s' , $ idOrKey , $ parameters ) , $ data ) ; }
Creates worklog for the issue by issue id or key

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

@param  integer|string $idOrKey
@param  array          $data
@param  string         $adjustEstimate ("new", "leave", "manual", "auto")
@param  string         $newEstimate    (required for "new" adjustEstimate)
@param  string         $reduceBy       (required for "manual" adjustEstimate)

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