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.
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.
Ravi
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!
V.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.