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,535
Community Members
 
Community Events
176
Community Groups

How to find linked issues on more than 1 level

Edited

Hello,

I need to find all issues with certain link type, but i can't find in one query more than one level of link.

For example there is issue Product-1278, it has 3 issues with link "is child for", but all of these three issues has few issues with the same link type. So i need to include that issues too.

I tried JQL:

issue = PRODUCT-1278 OR issuefunction in hasLinkType("Child") and issue in linkedIssues(PRODUCT-1278) OR issueFunction in hasLinkType("Child") AND issueFunction in linkedIssuesOf("issuefunction in linkedissuesof("issue in linkedIssues(PRODUCT-1278)", "is child for")", "is child for")

but got 

Error in the JQL Query: Expecting ')' or ',' but got 'issue'. (line 1, character 214)
Is it possible to find all these issues?
upd: i got to the point when error gone. Don't know why but Jira shows me the results of JQL when i change symbol " to ' in a part of query.
So now i use that:
issue = PRODUCT-1278 OR issuefunction in hasLinkType("Child") and issue in linkedIssues(PRODUCT-1278) OR issueFunction in hasLinkType("Child") AND issueFunction in linkedIssuesOf("issuefunction in linkedissuesof('issue in linkedIssues(PRODUCT-1278)', 'is child for')", "is child for")
but there are only four issues founded. It is the main PRODUCT-1278 and three linked issues with child link type. Looks like part of JQL was ignored.
Снимок экрана 2021-10-19 в 00.26.39.png
upd 2: found a stupid mistake, i need to chage type of link in JQL like that
issue = PRODUCT-1278 OR issuefunction in hasLinkType("Child") and issue in linkedIssues(PRODUCT-1278) OR issueFunction in hasLinkType("Child") AND issueFunction in linkedIssuesOf("issuefunction in linkedissuesof('issue in linkedIssues(PRODUCT-1278)', 'is parent of')", "is child for")
but the result of search is +1 issue that really has link type "is child for" with one of linked issues "from 1st level". But there are lot of the same issues, not only one.

1 answer

Hi @Daria Avdeeva

You may try some apps from the marketplace. For example, Links Hierarchy https://marketplace.atlassian.com/apps/1211022/links-hierarchy-full-dependency-viewer This app adds JQL functions that return linked issues from 1 to 5 depth levels.

Suggest an answer

Log in or Sign up to answer