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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I got interesting question from my collegue, but I'm not sure how to procede his request.
By my short testing with JQL I found this:
issue in linkedIssues(DEFDEV-644)
But I need something like this (not working JQL - just idea behind it. So I want all issues from all project where are issues linked with any issue in project DEFDEV by link issue type "Realized by".
issue in linkedIssueProject(DEFDEV) and linkType = "Realized by"
Do you have any idea ho to do this (with or without add-on - doesn't matter).
Thanks
Petr
Hello Petr,
You can do this if you have Scriptrunner installed:
issuefunction in hasLinkType("Cloners") and issue in linkedIssues(DEFDEV-644)
You just need to change the link name!
Hope this helps,
JT
I think it's not what he need.
He need issues from whole Jira which are linked with any issue from specific project by specific link type.
I just tried look into Scriprunner documentation, but I'm not sure which JQL function use for this use case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I misunderstood your initial question, it is clearer now!
The function you need is probably linkedIssuesOf.
You can achieve what you need with something like :
issuefunction in linkedIssuesOf('project = projectName', 'is cloned by')
But this function uses a one direction link, if you need both directions, you can use something like :
issuefunction in linkedIssuesOf('project = projectName', 'is cloned by') or issuefunction in linkedIssuesOf('project = projectName', 'clones')
I hope this answers a little more your question!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like it's exactly what we want, thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I actually find a easier way to find the linked items just by adding the links column on my search result.
Thanks for all you suggestions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Everyone!!!
I wanted to build on this query but I'm not sure if it is possible in Jira Server 7.13.
issue in linkedIssues (XYZ-2222) AND project = "Product Management"
This gives me any linked issues in XYZ-2222 but only those Issues in the Product Management Project. Thanks for posting this answer!
I wanted to take it a step further, For the results of this query I want to see any Tasks/SubTasks, I tried using the parent() function but I wasn't able to nest it properly.
Is this possible out of the box?
Does anyone have any suggestions on how to do this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great !, I found this answer just at the right time. It works perfectly.
Thank you !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
issue in linkedIssues("<ID of the ticket>","<link type>")
for example:
issue in linkedIssues("PROJ-123","parent of")
Shows all the tickets which are child of PROJ-123
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I tried this, I am getting error 'Issue link type 'parent of' could not be found in function 'linkedissues'
But the below one worked
issue in linkedissues("proj-123")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With the "linkedissues("proj-123") you get the ticket as soon as it is somehow linked to the proj-123.
if you want to specify which relation, you gotta type it (check that the relation is spelled like that in your project, or it exists)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am trying to build search filter with JQL query where I need to see the list of all link items for specific sprint. Any idea how i can accomplish this task?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sprint = XXXXX
You will need to find the Sprint ID and this will give you all Jiras in that Sprint.
You can also see if it will autofill so if you type sprint then choose = and begin to fill in your sprint name it might autofill.
Hope that helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, I understand the sprint= SprintID will give me all the items in the current sprint, but I like to if there is any prior linked item for any of the item listed for the sprint.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try
issuefunction in hasLinkType("Link") AND Sprint = XXXXX
I would do "Sprint is not EMPTY" so it shows everything and then I would narrow it down
Let me if that works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know that this is now 2022 and the question was asked in 2019, but JIRA now offers JQL to search by a specific link type. For example, I needed to find all the tickets that are owned by CRM-209 and this is the JQL that does that:
project = "CRM" AND issueBelongsTo = "CRM-209"
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.