public function get($idOrKey, array $fields = null)
    {
        $parameters = $fields ?
            sprintf(
                '?%s',
                $this->createUriParameters(
                    ['fields' => implode(',', $fields)]
                )
            )
            : ''
        ;

        return $this->getRequest(sprintf('issue/%s%s', $idOrKey, $parameters));
    }
public function get($idOrKey, array $fields = null)
    {
        $parameters = $fields ?
            sprintf(
                '?%s',
                $this->createUriParameters(
                    ['fields' => implode(',', $fields)]
                )
            )
            : ''
        ;

        return $this->getRequest(sprintf('issue/%s%s', $idOrKey, $parameters));
    }
public function get ( $ idOrKey , array $ fields = null ) { $ parameters = $ fields ? sprintf ( '?%s' , $ this -> createUriParameters ( [ 'fields' => implode ( ',' , $ fields ) ] ) ) : '' ; return $ this -> getRequest ( sprintf ( 'issue/%s%s' , $ idOrKey , $ parameters ) ) ; }
Returns issue by id or key.

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

@param  integer|string $idOrKey
@param  array          $fields array of fields to be returns (return all by default)

@return \GuzzleHttp\Message\Response
Returns issue by id or key .