private function parseFeature($issue)
    {
        $body = $this->getFeature($issue);
        $url = $this->jiraService->getUrl($issue->key) . '#';
        $feature = $this->gherkinParser->parse($body, $url);

        if (isset($issue->assignee)) {
            $feature->addTag('assignee:' . str_replace(array(' ', '@'), '_', $issue->assignee));
        }

        if (isset($issue->fixVersions)) {
            foreach ($issue->fixVersions as $fixVersion) {
               $feature->addTag('fixVersion:' . str_replace(array(' ', '@'), '_', $fixVersion->name));
            }
        }

        return $feature;
    }
private function parseFeature($issue)
    {
        $body = $this->getFeature($issue);
        $url = $this->jiraService->getUrl($issue->key) . '#';
        $feature = $this->gherkinParser->parse($body, $url);

        if (isset($issue->assignee)) {
            $feature->addTag('assignee:' . str_replace(array(' ', '@'), '_', $issue->assignee));
        }

        if (isset($issue->fixVersions)) {
            foreach ($issue->fixVersions as $fixVersion) {
               $feature->addTag('fixVersion:' . str_replace(array(' ', '@'), '_', $fixVersion->name));
            }
        }

        return $feature;
    }
private function parseFeature ( $ issue ) { $ body = $ this -> getFeature ( $ issue ) ; $ url = $ this -> jiraService -> getUrl ( $ issue -> key ) . '#' ; $ feature = $ this -> gherkinParser -> parse ( $ body , $ url ) ; if ( isset ( $ issue -> assignee ) ) { $ feature -> addTag ( 'assignee:' . str_replace ( array ( ' ' , '@' ) , '_' , $ issue -> assignee ) ) ; } if ( isset ( $ issue -> fixVersions ) ) { foreach ( $ issue -> fixVersions as $ fixVersion ) { $ feature -> addTag ( 'fixVersion:' . str_replace ( array ( ' ' , '@' ) , '_' , $ fixVersion -> name ) ) ; } } return $ feature ; }
Parse feature from issue

@param \StdClass $issue

@return FeatureNode
Parse feature from issue