Status
In our company there are two local hosted jira systems which are connected.
Jira A - jira.abc.com
Jira B - jira.dev.abc.com
Issues can be linked together and appear as links to within the Issue Links

Problem
We need to find within Jira A all issues which have related issues within Jira B.
This Query would do the job but does not exist:
issue in hasLinks("links to")