In order to improve performance, Confluence maintains a cache for the Jira issues macro to prevent each macro view from polling Jira for data. The default TTL for this cache is 5 minutes.
From Confluence Data Center 7.0 onwards, the Jira issues macro cache is never refreshed automatically, resulting in stale Jira data being presented to users.
- Confluence DC 6.x is not affected, and no versions of Confluence Server are affected. Only Confluence DC 7.x has this issue.
- Tested with and Chrome 83.0.4103 and Firefox 72.0.1
The following configurations were tested With Jira 8.3:
|Confluence||Data good or stale|
- Configure Confluence Data Center
- Setup application link to Jira
- Create page and insert Jira issue macro against a Jira project
- Modify an attribute of one of the issues in the Jira project
- Wait after 5 mins (default Jira issue macro cache TTL : <base_url>/admin/jim/cachesettings.action) and reload the page in the browser.
- Issue details remain the same, until the 'refresh' button at the bottom of the Jira issue macro is clicked.
Note: Changing the Jira issue macro cache TTL (<base_url>/admin/jim/cachesettings.action) or setting it to zero has no effect. Stale data will still be displayed.
Confluence should invalidate the cache data (and refresh the cache from Jira) after the Jira issue macro cache TTL (default 5min) has passed.
The cache data is never refreshed and stale data is shown, even on a page refresh/reload.
- Workaround #1 and #3 below are instant fixes but the problem will return immediately.
- Workaround #2 presents the most up-to-date Jira data but will incur a performance hit, as every page load will have to contact Jira for the data, however it ensures that the data is not stale.
Click the 'refresh' button at the bottom of the Jira issue macro. This relies on the user to perform this action and a new click on 'refresh' will be required every time to update the data.
Install the 'Confluence Source Editor' from Atlassian Marketplace and when editing the page, click the '<>' icon in the top right to edit the properties of the macro and add the line below (as per Jira Issues Macro):
With this workaround, each Jira macro needs to be edited, as the macro parameters are specific to each occurrence of the macro and are not global settings.
Flushing various distributed Jira caches in Confluence (eg. Jira metadata aggregate) via <base-url>/admin/cache/showStatistics.action#fullView will also force the Jira updates to be loaded, but they will then become stale again. This can have other unintended performance impacts and is not recommended as a workaround, merely documented here to capture the behaviour.