If you have Jira Server 8.0 or higher, then you should be able to do this natively. In 8.0 Jira introduced the JQL function called Issue Link Type. For example you could use a JQL such as
project=Testing AND issueLinkType in (blocks)
This would return only issues in that project that have at least one link of that specific type.
If you're not on Jira Server 8 or higher, then it might still be possible to do this with a 3rd party plugin for Jira. I know there are a couple of these that can help, for sure the Scriptrunner plugin has been able to do this for some time.
I hope this helps.
I don't think it's what the user is asking. I believe I am searching for something similar. All conditions should be true (AND):
I'm struggling to find an answer. Looks like there is a JQL function linkedIssues() which will take the linked issue and a link type, but doesn't seem to accept a glob or range like `issue in linkedIssues(DEF-*,"blocks")`
Your statement is good, but it covers only 2 parts of the sought functionality, at least as I see it.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events