-
Bug
-
Resolution: Timed out
-
Low
-
7
-
Severity 3 - Minor
-
0
-
Summary
PDF Export hangs/takes too long to export pages with JIRA Issues Macro. The more JIRA Issues Macro inside the page, the longer it takes for the export to finish.
If the page uses nested macros with an Excerpt-Include macro to include another page that has more nested macros + the JIRA Issues Macro, the export hangs even longer.
Also, it seems that the PDF export iterates over all the issues, not only the number of displayed issues set in the JIRA Issues Macro. This means that instead of requesting 60 issues from JIRA to receive the images - type and priority (e.g. 3 JIRA Issues Macro showing 20 issues each), it iterates over hundreds/thousands of issues depending on the filter, even though it's only going to export the display limit of each macro.
Steps to Reproduce
- Have a JIRA with a lot of created issues for testing.
- Create the application links between Confluence and JIRA.
- Create a page, add the Excerpt Macro and 6 JIRA Issues Macros filtering type = story inside it, for example.
- Create another page, add the Panel Macro > add the Tip/Expand or any other similar macro inside the Panel > add the Excerpt Include macro to include the page created in step 3.
- Attempt to export the page from step 4 to PDF.
Expected Results
The PDF File will be generated within seconds.
Actual Results
It takes a long time to finish, from exporting in seconds to exporting in several minutes
Notes
- It seems that the export takes even longer in these scenarios:
- When we try to export a page using Excerpt Include to include another page that uses JIRA Issues macro.
- When there's a nested usage of macros before the Excerpt Include macro. e.g. Panel > Tip > Excerpt Include
- It does not happen when exporting to Word.
Workaround
- If you don't need to show the results of the JIRA Issues Macro in the PDF Export:
- Go to Confluence Administration > PDF Stylesheet
- Add these two lines there:
div[id^="jira-issues-"] { display: none; } div[class^="refresh-issues-bottom"] { display: none; }
- We can remove all icons (issue types and priority) in order to avoid these calls to JIRA:
- Go to Confluence Administration > PDF Stylesheet
- Add it there:
img.icon { display: none !important; }
- If you still need to have the JIRA Issues Macro results in the PDF exports, we can only improve the performance a little bit:
- It helps a bit if we remove the Issue Type column from the JIRA Issues Macros.
- Export to Word instead
- is cloned from
-
CONFSERVER-52727 PDF Export Hangs When Exporting Page With JIRA Issues Macro and Nested Macros
-
- Gathering Impact
-
- mentioned in
-
Page Loading...