Forums

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

How to subtotal JQL queries

Sandra Monk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 28, 2018

Hi, I'm managing defects with Jira.  I want to list all the defects I have yet to complete Triage on, and get a total  by priority

 

We have an existing board that subtotals by priority (the Kanban board) but it does not allow me to filter

 

I have another board that lets me filter but has no totals (Issues board), here is my filter:

project = XXXX AND issuetype = Defect AND (status = New OR Assignee = currentUser() AND status not in (resolved, released, closed))   ORDER BY priority DESC, created ASC

 

I have a third board that will let me enter filters, and has subtotals (by sprint)  so I know it is possible to combine the two.  I have read though the help text looking for Group By, Count or Total, and also looked for other Questions asking about this 

 

I am not a board owner or administrator.  

Please give me some tips on how to do this. How can I add a filter to the board that totals correctly, or a total to the board that filters, or change what is being filtered by on the third board? 

2 answers

1 accepted

0 votes
Answer accepted
Nguyen Tran
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.
March 28, 2018

Hi Sandra,

I'd recommend creating a dashboard instead. You can use the "Issue Statistics" gadget. Put your filter in and set the Statistic Type to "Priority". Then you can see the total very quickly and dynamically. 

Nguyen

Sandra Monk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2018

Thanks for your help.

0 votes
Piotr Bojko
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.
April 26, 2018

Using the addon https://marketplace.atlassian.com/1218767 you would use SQL like language to have bacic queries and computations

SELECT
J.Priority,
SUM(J.Key)
FROM TABLE(JQL('Priority, Key', 'project = XXXX AND issuetype = Defect AND (status = New OR Assignee = currentUser() AND status not in (resolved, released, closed))')) AS J
GROUP BY J.Priority

With the addon you can merge the JQL queries with SQL  

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events