private function getFeature($issue)
    {
        $arrayIssue = (array) $issue;

        if (array_key_exists($this->featureField, $arrayIssue)) {
            return $this->extractFeatureFromString($arrayIssue[$this->featureField]);
        }

        $customFields = $arrayIssue['customFieldValues'];
        foreach ($customFields as $customField) {
            if ($this->featureField == $customField->customfieldId) {
                $value = current($customField->values);

                return $this->extractFeatureFromString($value);
            }
        }

        return '';
    }
private function getFeature($issue)
    {
        $arrayIssue = (array) $issue;

        if (array_key_exists($this->featureField, $arrayIssue)) {
            return $this->extractFeatureFromString($arrayIssue[$this->featureField]);
        }

        $customFields = $arrayIssue['customFieldValues'];
        foreach ($customFields as $customField) {
            if ($this->featureField == $customField->customfieldId) {
                $value = current($customField->values);

                return $this->extractFeatureFromString($value);
            }
        }

        return '';
    }
private function getFeature ( $ issue ) { $ arrayIssue = ( array ) $ issue ; if ( array_key_exists ( $ this -> featureField , $ arrayIssue ) ) { return $ this -> extractFeatureFromString ( $ arrayIssue [ $ this -> featureField ] ) ; } $ customFields = $ arrayIssue [ 'customFieldValues' ] ; foreach ( $ customFields as $ customField ) { if ( $ this -> featureField == $ customField -> customfieldId ) { $ value = current ( $ customField -> values ) ; return $ this -> extractFeatureFromString ( $ value ) ; } } return '' ; }
Gets the feature from the defined field

@param \stdClass $issue

@return string
Gets the feature from the defined field