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

Nested JQL Queries

Edited

Is it possible to write nested JQL queries without using any third party plugin?

 

Logic:

output1 = selectedIssues(JQL);

for (o in output1){

     output2 = selectedIssues(JQL2 + o.user)

   result + = output2

}

Output of the first JQL will be used an input for the second JQL.

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
2 votes
Answer accepted
Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Apr 08, 2020 • edited

Hi Shyam,

Depending of your use case you can simply benefit from the AND native operator to retrieve the desired data. For some other cases you must go for a third-party app instead. Using i.e. JQL Booster Pack you can passes a subquery to a bunch of the methods, for example:

 

References:

 

Hope this information helps you to create awesome queries <3

Kind regards

0 votes
Daniel Turczanski - JQL Search Extensions
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Apr 06, 2020

Hi Shyam,

Nested JQL is not supported out of the box in Jira.

An alternative to using an app like JQL Search Extensions that support subqueries, is to manually create the results:

  1. search for for tickets that satisfy the first JQL
  2. export to Excel and copy the users
  3. create a second JQL query with the users from the step 2.

 

Even with additional apps your use case might be hard to satisfy. Can you explain a bit more what is your exact use case and what business requirement does it need to satisfy?

TAGS
AUG Leaders

Atlassian Community Events