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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,463,213
Community Members
 
Community Events
176
Community Groups

query for links to external tools / repositories

Edited

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.

image.png

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:

image.png

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.

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.

Suggest an answer

Log in or Sign up to answer