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,642,205
Community Members
 
Community Events
196
Community Groups

Query two-levels hierarchy in Jira

Hello,

Can you please help me with Filter query, that is searching for all issues, that belong to the epics, which, in its turn, are children of one specific ticket of type Initiative?  

I can for example find all epics of the initiative with this query "Parent Link" in (initiative_id)" or to find all issues of epic with this query "Epic Link" in (epic_id)", but I don't understand how to put one query into another. It seems that JQL doesn't support such functionality.

Can you please give me some hints for this problem?

Thank you,

Natallia.

3 answers

Hi, just as follow-up, I found a way to query this with ScriptRunner, with the following query: (issueFunction in issuesInEpics(" 'Parent Link' ='InitId' ") OR "Parent Link" =InitId).

It returns all epics of the given Initiative, and also all stories of these epics.

Thanks,

Natallia.

0 votes
Steven Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 16, 2016

This unfortunately is not avaliable out of the box. JIRA doesn't provide any functions that allow you to search multiple levels at a time. Add-ons like Scriptrunner and JQL tricks do provide this ability however. 

Hello @Steven Behnke 

can you help me how i can achieve below scenario with scriptrunner

I want to check values of one object which may be directly or indirectly linked to current object.

Eg:

I want to retrieve value of field from "Story" object, and my current object is "Enabler".

1. Direct link: Enabler -->Story

2. Indirect link : Enabler --->Feature--->Story

Please suggest some solution for this problem

0 votes
Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 16, 2016

have you got script runner installed? google Script Runner issueFunction

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events