Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

query for links to external tools / repositories


Hello, community!

Issues in my project are linked to various external tools (requirements, etc. Think as something similar to linking a Jira issue to a git commit).

How can I query for issues that meet some criteria for this type of links?.. E.g. counting the links, having 0 or exact 5, maybe get the list of linked items? See attached screenshot.


Scriptrunner "hasLinks()" does not recognize these links, only the 'standard' ones, between 2 issues: is child, epic link, blocks, is blocked an so on. "related test case" is another type of links similar to "tracks requirement" above:


Thank you in advance!

Vasile S.


1 answer

1 accepted

0 votes
Answer accepted

Hi @Vasile Selegean 

Have you tried hasRemoteLinks()?

issueFunction in hasRemoteLinks()

You will still not be able to do calculations in JQL but because you have ScriptRunner you can always write your own script to fetch the issues based on number of remote links.

I hope it helps.


Hello @Ravi Sagar _Sparxsys_ !

Obviously.. I haven't... Somehow I missed the *Remote functions..

Thanks for the tip, that's what I need!

Here's the query:

project = QWERTY and issuetype = Story and issueFunction in linkedIssuesOfRemote("relationship","tracks requirement") 

Thank you!


Suggest an answer

Log in or Sign up to answer