src/jira/Util/IssueLinkHelper.php
public static function getLinkedIssueKey($issueLink)
    {
        $linkedIssueKey = null;

        if (isset($issueLink['outwardIssue'])) {
            if (isset($issueLink['outwardIssue']['key'], $issueLink['type']['outward'])) {
                $linkedIssueKey = $issueLink['outwardIssue']['key'];
            }
        } elseif (isset($issueLink['inwardIssue'], $issueLink['type']['inward'])) {
            if (isset($issueLink['inwardIssue']['key'])) {
                $linkedIssueKey = $issueLink['inwardIssue']['key'];
            }
        }

        return $linkedIssueKey;
    }
public static function getLinkedIssueKey($issueLink)
    {
        $linkedIssueKey = null;

        if (isset($issueLink['outwardIssue'])) {
            if (isset($issueLink['outwardIssue']['key'], $issueLink['type']['outward'])) {
                $linkedIssueKey = $issueLink['outwardIssue']['key'];
            }
        } elseif (isset($issueLink['inwardIssue'], $issueLink['type']['inward'])) {
            if (isset($issueLink['inwardIssue']['key'])) {
                $linkedIssueKey = $issueLink['inwardIssue']['key'];
            }
        }

        return $linkedIssueKey;
    }
public static function getLinkedIssueKey ( $ issueLink ) { $ linkedIssueKey = null ; if ( isset ( $ issueLink [ 'outwardIssue' ] ) ) { if ( isset ( $ issueLink [ 'outwardIssue' ] [ 'key' ] , $ issueLink [ 'type' ] [ 'outward' ] ) ) { $ linkedIssueKey = $ issueLink [ 'outwardIssue' ] [ 'key' ] ; } } elseif ( isset ( $ issueLink [ 'inwardIssue' ] , $ issueLink [ 'type' ] [ 'inward' ] ) ) { if ( isset ( $ issueLink [ 'inwardIssue' ] [ 'key' ] ) ) { $ linkedIssueKey = $ issueLink [ 'inwardIssue' ] [ 'key' ] ; } } return $ linkedIssueKey ; }
Returns key of linked Issue from Issue link

@param array $issueLink An array of Issue link

@return string Key of linked Issue
Returns key of linked Issue from Issue link