Confluence jira macro doesn't display the count of issues when count == 1
Asked by Kieran Donnelly:

When using the Jira issue macro in Confluence page, I want to display a count of issues returned by the JQL query. For the most part this works well. (

However when the number of issues found is one, instead of display the result inline as '1 Issues', rather it displays the issue details e.g. 'BUP-XXXX Your summary text here - NEW'.

This is not the case with the legacy jira macro. Am i doing something wrong?

From the documentation:
>
> Displaying a count of issues {#toc-hId--405864330}
> --------------------------------------------------
>
> You can choose to display the number of issues returned by your search, rather than a table of issues. The Jira Issues macro will display a count of issues, linked to the search in your Jira application.
>
> **To display an issue count:**
>
> 1. Add the Jira Issues macro to the page.
>
> 2. Define your search criteria in the macro browser via JQL, as described above.
>
> 3. Select **Display options** , then select **Total issue count** next to 'Display options' in the macro browser.
>
> 4. Select **Insert**.


Answers:
author: Jacob Saunders
body: I have been having the same issue for a few weeks now. Yesterday, I was logged out of my Atlassian (Atlas now?) and had to re-log in. I got a welcome email from Atlas. Today it is working again by using:

Insert Elements \> Jira Issues \> Switch to JQL \> Switch to Inline Link \> Paste JQL

After pasting the JQL link, it is now showing me the count (as opposed to the "BUP-XXXX Your summary text here - NEW") that is was showing me yesterday and the past few weeks.

It seems like getting booted out and having to re-log in fixed this. Hopefully this means the issue will be fixed on your end soon. Under "Inline Link" it says "display number of search results" so I have a feeling this will be back up soon.

comments: author: Jacob Saunders
body: Okay update. It is working now for all of them except JQL queries that pull only one issue. Then it gives me all the info for that one issue... but it didn't do this before. My workaround for rn is to change it to URL once the issue is inserted and then just edit the display text to say "1 issue." Then if they have another, hopefully it will change...


author: Kieran Donnelly
body: I'm trying to maintain dynamic dashboard tables (each cell has a macro) and so manually updating is out of the question. There are 20-30 cells! Thank you for trying.


author: Jacob Saunders
body: For queries that pull more than one defect, does the Jira Macro "count" option display "X Issues" or does it still give all of the details?

For me, it was previously *only* giving a table of details instead of the count regardless of how many issues the query pulled. Now, it only gives the details if there is just one issue. Otherwise it will display the count (if there is more than one issue, or if there are 0). So my workaround is going into Jira, creating an issue, inserting the macro into confluence (it now displays "2 issues,") then deleting the jira ticket, and then boom it says "1 issue" on confluence. This should work if its showing you the details of the tkt when there are 2 or more... hopefully this helps


author: Danut M _StonikByte_
body: Hi [@Kieran Donnelly](/t5/user/viewprofilepage/user-id/5422853),

Not sure how this could be fixed. I was also playing with it and was not able to make it display the count.

You could try the **Filter Statistics macro** instead.

Or, if you are willing to try a payed app, you could use the **Issue Filter Formula** **macro** or the **Advanced Issue Filter Formula macro** offered by our [Great Gadgets](https://marketplace.atlassian.com/apps/1226592/great-gadgets-for-confluence-agile-charts-custom-reports?hosting=cloud&tab=overview) app. They can display not only the count of issues, but also any formulas.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/304521i897F58061CEBF921/image-size/large?v=v2&px=999 "image.png")

I hope this helps.

Danut.

comments: author: Kieran Donnelly
body: Appreciate the response. In my case I don't have the agency to add another app to our instance.


Tags: cloud

confluence-cloud