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

have you got script runner installed? google Script Runner issueFunction

0 vote
Steven Behnke Community Champion 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. 

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

76 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you