Error formatting macro: jiraportlet: java.lang.RuntimeException: Not Found
Symptoms
Seeing Error formatting macro: jiraportlet: java.lang.RuntimeException: Not Found
in Confluence pages.
Cause
The error is expected if you are integrating Confluence with JIRA 4.0 and later. This is because due to architectural changes in JIRA 4.0, the ability to create new JIRA portlet macros in Confluence is not available. Gadgets replaced portlets in JIRA 4.0 and Confluence 3.1. Refer to JRA-19285 and JRA-18521 for more information.
In Confluence 4.1 and later, it is no longer possible to add a JIRA Portlet macro via the Confluence macro browser. It is still possible to add the macro using wiki markup or by copying an existing JIRA Portlet macro. The macro still displays information correctly.
In Confluence 4.3, we will remove the JIRA Portlet macro from Confluence. Pages that contain the macro will no longer display information drawn from JIRA. Instead, they will show an error reporting that the macro does not exist.
Official documentation regarding this matter is documented here.
Resolution
To prevent this behaviour, please upgrade to a version of JIRA that supports gadgets, and follow the instructions in How to Migrate from JIRA Issues and JIRA Portlets to Gadgets.