Error rendering Product Plan Macro in Confluence
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
After adding the Product Plan macro to a Confluence page, the macro won't work. Instead, the macro will show the following message:
Error rendering macro 'portfolio-for-jira-plan'
com.atlassian.sal.api.net.ResponseStatusException: Unexpected response received. Status code: 503
Environment
- Confluence Server or Data Center (any version)
- Application link set between Confluence and Jira using DUO
Diagnosis
The atlassian-confluence.log will show:
2020-09-03 06:23:35,729 WARN [https-jsse-nio-443-exec-86] [xhtml.view.macro.ViewMacroMarshaller] handleMacroExecutionException Exception executing macro: portfolio-for-jira-plan, with message: The link doesn't exist or you don't have permission to access it -- url: /pages/viewpage.action | page: 15325298 | traceId: c6b92dc58c2f2ff1 | userName: myuser | referer: https://confluence.example.com/plugins/servlet/duologin?duo.request.key=TX%7CXWJsb2taaW5hfERJS1VFWUtNTU43VlA5SEtRUzhafDE1OTkxMjg5MTI%3D%7C1247afb812716a0b66ea501e0ba4bb5e4c3b3d52%3AAPP%7CZWJsb2toaW5hfERJS1VFWUtNTU43VlA5SEtRUzhafDE1OTkxMzIyMTI%3D%7C0446121cc01ff5edfcd30abd0a89725f16bfa3f9&duo.host.key=api-140f2f41.duosecurity.com&duo.originalurl.key=%2Fpages%2Fviewpage.action%3FspaceKey%3DProduct%26title%3DMIDAS%2BDashboard | action: viewpag
Cause
DUO is causing problems with the integration between Jira and Confluence (Application Link).
Solution
Follow the article from DUO: How do I create application links between Confluence and JIRA to resolve issues with Duo?