You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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!
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")