Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Still nested query

Sergii Shevchuk October 28, 2021

Hi team,

 

Please help )

I can't find or build the query that would list all issues that are related to all issues that are part of epic.

1. First part: list tickets in epic = `parent = "JIRA-1"`

assuming we have output: JIRA-2, JIRA-3, JIRA-4

2. Second part: list tickets related to current as = `issue in linkedIssues("JIRA-2", "relates to")`

I can't figure out how to combine two of them and output of first pass as the first argument to second....

 

Thanks in advance

2 answers

1 accepted

2 votes
Answer accepted
Bill Sheboy
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.
October 28, 2021

Hi @Sergii Shevchuk 

You cannot do that in one JQL query with out-of-the-box features.

Some alternatives are:

  • do the query in steps with multiple queries
    • for the epic, get the child list, and export their keys
    • for those keys, create a combined query with ORs the results together
  • export the issues and perform the linkages/joins outside of Jira
  • use a marketplace app to enhance JQL features
  • create an automation for Jira rule to automate the multi-step query

Kind regards,
Bill

Sergii Shevchuk October 29, 2021

Thank you

0 votes
Daniel Turczanski - JQL Search Extensions
Atlassian Partner
November 3, 2021

Hi @Sergii Shevchuk ,

With standard JQL, you can only get a list of issues with links and export them to Excel for further processing. This works if you want to do a one-off analysis.

Standard JQL doesn't easily allow it, but you can find the results quickly using our professional indexing service JQL Search Extensions

After you install the app, you can simply search:

issue in linkedIssuesOfQuery("parent=JIRA-1", "relates to")

Check out the documentation to see more examples.

I hope this helps!

Daniel

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events