Cannot Insert Jira Query with "Total issue count" into a confluence page
Asked by Karen Michaels:

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.png](/t5/image/serverpage/image-id/151036i38D91EA0438A3F64/image-size/large?v=v2&px=999 "Screen Shot 2021-07-12 at 1.34.16 PM.png")![Screen Shot 2021-07-12 at 1.36.40 PM.png](/t5/image/serverpage/image-id/151037i2E9E956A204A027C/image-size/large?v=v2&px=999 "Screen Shot 2021-07-12 at 1.36.40 PM.png")

Karen


Answers:
author: Andy Heinzer
body: For any other user that encounters this behavior, I believe this is a bug. We are tracking this behavior over in [CONFSERVER-53469](https://jira.atlassian.com/browse/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](https://confluence.atlassian.com/doc/configuring-system-properties-168002854.html) in order to set the parameter **confluence.macro.placeholder.timeoutMillis**to a higher value such as 10000


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Karen Michaels](/t5/user/viewprofilepage/user-id/4473903) ,

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](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview).

Then the workaround may be to list all the related issues and count the totals with the help of the [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) or [Pivot Table](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Pivot+Table+macro) 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).

comments: author: Karen Michaels
body: We do not use this app.

Karen


author: Karen Michaels
body: 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


Tags: confluence-server

server