"statusCategory != Done and issueFunction in hasLinks()" will bring up open issues that are linked to other issues but it includes issues that are only linked to issues in the same project.
I want to limit my search so that only issues with links to other projects are found. Example:
IssueA1 in ProjectA links to IssueA2 in ProjectA and links to IssueB1 in ProjectB
IssueA2 in ProjectA links to IssueA1 in ProjectA
The search will return IssueA1 and IssueB1
We have Script Runner but I still haven't figured out how to find all issues with links to other issues outside of their projects.