Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,387
Community Members
 
Community Events
165
Community Groups

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

Karen

2 answers

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.

 

Karen

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>

Karen

0 votes
Andy Heinzer Atlassian Team Apr 27, 2022

For any other user that encounters this behavior, I believe this is a bug.  We are tracking this behavior over in CONFSERVER-53469.  The complex JQL query here may certainly be complicating the ability of the macro to load this Jira issue data before a timeout occurs.

There is a workaround where you can use the steps in Configuring System Properties in order to set the parameter confluence.macro.placeholder.timeoutMillis to a higher value such as 10000

Suggest an answer

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

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

736 views 5 21
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