Macro to auto populate Confluence table with data from JIRA filter?
Asked by Jerry Yen:

Does Confluence macros have the ability to take data from JIRA filter results and populate them into Confluence table?

The reason why I need to copy the data is because this is intended for CAB meeting records, so the data needs to be "static" and not "dynamic".

Please note that I'm currently using server version and not cloud version.


Answers:
author: Jamie Esker _Appfire_
body: Hi [@Jerry Yen](/t5/user/viewprofilepage/user-id/5343400)

[Comala Publishing](https://marketplace.atlassian.com/apps/143/comala-publishing?hosting=datacenter&tab=overview&utm_source=organic&utm_medium=atl-community&utm_campaign=engagement) lets you make static versions of documents and this is one of our use cases. We know it's a hassle to create reporting with live macros involved, so this is the perfect solution for you. When a document is created, you just need to click the 'create snap' button. I'm a Product Marketing Manager for this app, so please let me know if you have questions. We could also set you up with a live demo.

Thanks!  
Jamie


author: Harald Seyr
body: Hi [@Jerry Yen](/t5/user/viewprofilepage/user-id/5343400)

As I understand, you prefer to have Confluence show not "live" data that is updated whenever a page is shown, but some "frozen snapshot" that shows the data as it was in the moment that Confluence page or table was created.

As I remember, there is no option in the macro in the server version that has a "do not update" effect.

From the marketplace plugins, none seems to be still available that used to support this.

You probably have to make a filter in Jira and use the old copy/paste approach :-(

Regards,

Harald

comments: author: Jerry Yen
body: Hi Harold,

This is what I do currently and was hoping that there was a way to automate this via Confluence Macro.


author: Dam
body: Hi [@Jerry Yen](/t5/user/viewprofilepage/user-id/5343400)

You use the Jira Issues Macro in Confluence to display data from Jira issues.  
Here is the documentation about this macro: <https://confluence.atlassian.com/doc/jira-issues-macro-139380.html>

This macro is available for Confluence Server / Datacenter and Cloud.

You need to link Jira and Confluence using Applications Links, here is the documentation about that: <https://confluence.atlassian.com/doc/linking-to-another-application-360677690.html>

I hope this helps.  
Dam.

comments: author: Jerry Yen
body: Thank you. I've tried using JIRA issue macro to display JIRA filter results in Confluence. However, there are 2 issues:

1. The date/time display will only display date but not the time. So if my record's deployment date is Oct 20 2023 06:00 it will only display Oct 20 2023.

2. The data displayed is "live", but for my purpose (Change Management CAB agenda) I need "static" or "frozen" data for auditing purpose.

Thus, what I need is some method to auto populate/copy data from a JIRA filter to a static confluence table. Right now this can be done manually with cut and paste, but I'm looking to see if there is a way to automate this via macro.


author: Dam
body: Hi [@Jerry Yen](/t5/user/viewprofilepage/user-id/5343400)

Then you will have to code your own custom macro... cause there is no way to do that in Confluence Server / Datacenter.

Here is the documentation about custom macro: <https://confluence.atlassian.com/doc/writing-user-macros-4485.html>

Regards,  
Dam.


Tags: server