Multiple JQL queries in a single report

We have a requirement where we need to combine the results of multiple filters/jql's into a single report.

Is there a plugin available for the same? Could anyone please suggest how could we achieve this?

2 answers

0 votes

Depends on what kind od report you are looking for!.Checked the filter statistics gadget?

Unfortunately, this plugin won't help. Allow me to explain it further, suppose I have written one JQL for a jira project 'TEST One'.

eg. project = TO and issuetype = "Bug"

and another jql for another project 'Test Two'

eg. project = TT and issuetype = "Bug"

I want the results for both JQL's in a single report in Jira. Can I use a join?

No, you need to merge the two queries together.

Project in (TT, TO) and issuetype = "Bug"

Joe Wai Tye Atlassian Team Sep 22, 2013

I think both of those queries work, based on a quick test that I just did.

Not sure what kind of performance impact this may have, but why not "OR" everything together in a jql?

(project = TO and issuetype = "Bug") OR (project = TT and issuetype = "Bug")

Nick's query will work incase the jql's are similar and Florin's query should work for any jql combination I guess...thanks Jobin, Nic and Florin

The SQL for JIRA plugin is able to achieve it seamlessly as it fully supports JQL integrated with SQL. The SQL language supports the UNIION command for that. Ex:

 

 

select * from ISSUES where JQL = 'project = TO and issuetype = Bug'
union
select * from ISSUES where JQL = 'project = TT and issuetype = Bug'

alternatively you might want to combine both JQL queries within a single one only:

select * 
from ISSUES 
where JQL = '(project = TO and issuetype = Bug) 
              OR (project = TT and issuetype = Bug)'

both queries would provide the same result data. 

 

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,968 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot