When writing a document for my team, I realized it would be awesome if there was an option to show in a page how many issues in jira are associated with a giving confluence doc. I couldn’t figure out an out-of-the-box answer for it.
Integrating JIRA with Confluence to display the number of issues associated with a specific document is a common request, but there isn’t a direct “out-of-the-box” solution to display a count of issues. However, there are some options to achieve this:
Option 1: Using JIRA Macros in Confluence
You can use JIRA Issue Filter Macros to display JIRA issues within Confluence, and from that, you can deduce the number of issues.
Option 2: Use a Report Block (via JQL)
Another approach would be creating a custom report that pulls in the JIRA issues and simply displays the count of them. The JIRA macro doesn’t have a built-in “count” display, but you could display the list of issues and count them manually or use a JIRA report.
Option 3: Develop a Script (If Customization is Possible)
If you’re open to customization:
Use JIRA REST API or Confluence/JIRA integration apps like ScriptRunner for JIRA.
Write a small script that counts the JIRA issues linked to a Confluence page based on JIRA keys or issue types.
You can have your development team or admins customize this solution if you need something more specific and automated.
Cleaning Services Round Rock is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
With the following JQL query:
text ~ "<page url>" ORDER BY created DESC
You can pass that to “Jira Issues” and render the list in your Confluence document.