public function get($issue, $includedFields = null, $expandFields = false)
    {
        $params = array();
        if ($includedFields !== null) {
            $params['fields'] = $includedFields;
        }

        if ($expandFields) {
            $params['expand'] = '';
        }

        $path = "/issue/{$issue}?" . http_build_query($params);

        $result = $this->client->callGet($path)->getData();

        return new \JiraClient\Resource\Issue($this->client, $result);
    }
public function get($issue, $includedFields = null, $expandFields = false)
    {
        $params = array();
        if ($includedFields !== null) {
            $params['fields'] = $includedFields;
        }

        if ($expandFields) {
            $params['expand'] = '';
        }

        $path = "/issue/{$issue}?" . http_build_query($params);

        $result = $this->client->callGet($path)->getData();

        return new \JiraClient\Resource\Issue($this->client, $result);
    }
public function get ( $ issue , $ includedFields = null , $ expandFields = false ) { $ params = array ( ) ; if ( $ includedFields !== null ) { $ params [ 'fields' ] = $ includedFields ; } if ( $ expandFields ) { $ params [ 'expand' ] = '' ; } $ path = "/issue/{$issue}?" . http_build_query ( $ params ) ; $ result = $ this -> client -> callGet ( $ path ) -> getData ( ) ; return new \ JiraClient \ Resource \ Issue ( $ this -> client , $ result ) ; }
Returns a full representation of the issue for the given issue key.

@param string|int $issue the issue id or key to update
@param type $includedFields the list of fields to return for the issue. By default, all fields are returned.
@param type $expandFields
@return \JiraClient\Resource\Issue
Returns a full representation of the issue for the given issue key .