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'
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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,214 views 2 7
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