I am trying to a query to get stories, where the linked stories have not the same fixVersion.
I know how to write it in SQL, but I am not sure how to get this query in JQL or in another way in JIRA.
The setup is: two projects, having both identical fixVersions. I need the stories, which are linked together, but their fixVersions do not match.
The SQL would be (pseudo-sql):
SELECT globe.key, tibco.key, globe.fixVersion, tibco.fixVersion
FROM globe_project globe
LEFT OUTER JOIN tibco_project tibco ON tibco.linkedIssueKey = globe.key
WHERE globe.fixVersion != tibco.fixVersion
The join works with scriptrunner on issueFunction in linkedIssuesOf(project = Globe). But how to do the WHERE I can't figure out...