Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cannot Insert Jira Query with "Total issue count" into a confluence page

I have a confluence page with numerous queries.  I have used the “Insert Jira Issue/Filter” operation enter a query and then in the “Display options” section I choose “Total issue count” and Click “Insert”.  This usually adds a link that shows the issue count.  The count is a link to a page to run the query.   However, If I use a complex query that includes dbValuesMatching, nothing gets added to the page.  If I use a simpler query, the issue count gets added to the page.

This seems to be a problem with the query.  I can insert the issue count into many of my pages with other queries.  For this specific query, I can insert the table of issues into any page.  But, I cannot insert the issue count into any page.

The problematic query looks something like this (I have removed the proprietary information):

((("Aaa" in dbValuesMatching(Bbb, 1111)) and assignee in membersOf(group1)) OR (("Aaa" in dbValuesMatching(Bbb, 1111)) and ("Aaa" not in (dbValuesMatching(Ccc, ddd),dbValuesMatching(Ccc, EMDBU),dbValuesMatching(Ccc, eee),dbValuesMatching(Ccc, fff),dbValuesMatching(Ccc, ggg),dbValuesMatching(Ccc, hhh))) and assignee in membersOf(group2))) and type in ("Bug") AND status IN (list-of-status-values) and "Fix By" ~ "iii" ORDER BY  created desc

Has anyone else seen this issue?   Are there any suggestions for how to insert the Jira count into our page?

We are using Atlassian Confluence 7.4.8.

Thanks.Screen Shot 2021-07-12 at 1.34.16 PM.pngScreen Shot 2021-07-12 at 1.36.40 PM.png


1 answer

Hi @Karen Michaels ,

I've never come across such case - not sure if it's a bug or smth because as usual if the Jira Issues macro responds to your query and lists the related issues, then it counts the totals as well.

But maybe you use our app in your company - Table Filter and Charts for Confluence.

Then the workaround may be to list all the related issues and count the totals with the help of the Table Filter or Pivot Table macros (I mean not to filter the issues or aggregate them but simply use these macros to display the total number of the returned issues). 

We do not use this app.



Note that I was able to get this to work, but using the source editor and changing the table into a count.  To do this I removed these lines:

<ac:parameter ac:name="columnIds">issuekey,summary,issuetype,assignee,status,resolution</ac:parameter>
<ac:parameter ac:name="columns">key,summary,type,assignee,status</ac:parameter>
<ac:parameter ac:name="maximumIssues">20</ac:parameter>

and replaced them with:

 <ac:parameter ac:name="count">true</ac:parameter>


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

👁‍🗨 Confluence Team planning dashboard_Atlympics 🌈

Hi Atlassian's, How is your journey with #Atlympics 2021 so far....excited! Me too, same excitement. Here's my typical team planning and vision dashboard which I used to share to my management and ...

130 views 1 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you