Extract all Release and Sprint Details from Jira and show in a Confluence page in a tabular format
Asked by Soumalya Sen:

I am very new to Confluence and know nothing about user macros, and my requirement is to get all the releases of the projects in a single table for better report management. Only the releases and not the issues associated with it.

And same for the sprints, i want a table with all the sprint details for a project.

I am not able to find the solution, and also i cannot write custom user macros, can anyone please help me? Like how this can be achieved? If there are any ore defined macro which can be used? Or If at all is it possible?

Any help would be appreciated.

TIA.


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Soumalya Sen](/t5/user/viewprofilepage/user-id/4239841) ,

You should try the standard [Jira Issues](https://confluence.atlassian.com/doc/jira-issues-macro-139380.html) macro. You'll be able to collect Jira Issues on your Confluence pages and specify which issue fields you want to show:

![](https://confluence.atlassian.com/doc/files/139380/1005333596/1/1589961795858/jira-issues-display-options.png)

To aggregate your issues by fix versions and sprints, you need to use additional apps, for example, [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview).

Maybe it's been already installed for your instance - search for the Table Filter or Pivot Table macros in the macrobrowser.

Then you'll be able to wrap your Jira Issues macro subsequently into the Table Filter and Pivot Table macros and aggregate your issues. Here is an example of the [visualized issues distributed by sprints or releases](https://docs.stiltsoft.com/display/public/TFAC/Visualizing+the+Issues+Distribution+by+Sprints+or+Releases).

comments: author: Soumalya Sen
body: Hi [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

Thank you so much for the reply.

But my requirement, is to make a list only of all the releases or sprints of a particular project, and i want no more data in that other than release date or status. No issues should be there in the list, only the list of number of releases or number of sprints qnd their respective details of the particular project.

I am not able to do this, do i need to write any custom macro for this?

If needed, can you tell me how to write custom macro for this purpose? I am not at all aware of the custom user macro part, so please help me in any way.

How to achieve this?

Thanks in advance


author: Katerina Kovriga {Stiltsoft}
body: I'm not sure of user macros, but in my reply I didn't mean for you to show the plain list of issues.

**Step 1** is really to use the Jira Issues macro for each of your projects. Here you use the JQL **project = project_name**.

As a result, you get the following picture:

![distribution.png](https://docs.stiltsoft.com/download/attachments/42241938/distribution.png?version=1&modificationDate=1572272175000&api=v2)

And, of course, you may choose to show any fields you need in the Jira Issues macro.

**Step 2** is to wrap your Jira Issues macro into the Table Filter macro, Pivot Table macro and optionally into the Chart from Table macro:

![](https://docs.stiltsoft.com/download/attachments/42241938/release%20distribution_4.png?version=1&modificationDate=1572272175000&api=v2&effects=border-simple,shadow-kn)

You filter your issues by type (for example, Improvement as is shown on the first screenshot) and aggregate them as you like (the Pivot Table macro works like Excel pivots, so you'll be able to count, for example, the number of Improvements for the every Fix Version you have in your project).

**Step 3** will be to set all the macros to count your data automatically. You can see an example [here](https://docs.stiltsoft.com/display/public/TFAC/Visualizing+the+Issues+Distribution+by+Sprints+or+Releases).

So as a result you won't see any issues - only the aggregated pivot table or a visualized chart if you decide to use the Chart from Table macro:

![](https://docs.stiltsoft.com/download/attachments/42241938/release%20distribution_2.png?version=1&modificationDate=1572272175000&api=v2&effects=border-simple,shadow-kn)

Maybe it's not the exact case you need, but I've tried.)))


Tags: confluence-server

integration

jira

macro

release

server

sprint

user-macro