Cannot Display a Confluence page with a Team Calendars for Confluence macro in a JIRA Page Gadget

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Symptoms

You have set up an application link and gadget subscription between JIRA and Confluence and are attempting to display a Confluence page with a Team Calendars for Confluence macro in the JIRA Page Gadget.

You see this error on the screen:

Error rendering macro 'calendar': No enum const class

com.atlassian.confluence.content.render.xhtml.ConversionContextOutputType.PAGE_GADGET

The following appears in the atlassian-confluence.log:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2012-10-26 12:52:48,875 ERROR [http-10432-1] [xhtml.view.macro.ViewMacroMarshaller] marshal Error rendering macro: calendar -- url: /rest/gadget/1.0/pagegadget/getrenderedpage.json | userName: admin java.lang.IllegalArgumentException: No enum const class com.atlassian.confluence.content.render.xhtml.ConversionContextOutputType.PAGE_GADGET at java.lang.Enum.valueOf(Enum.java:196) at com.atlassian.confluence.content.render.xhtml.ConversionContextOutputType.valueOf(ConversionContextOutputType.java:7) at com.atlassian.confluence.extra.calendar3.CalendarMacro.execute(CalendarMacro.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.atlassian.confluence.macro.xhtml.XhtmlMacroManager$ResourceAwareMacroInvocationHandler.invoke(XhtmlMacroManager.java:220) at $Proxy1343.execute(Unknown Source) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:88) at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshal(ViewMacroMarshaller.java:24) ....

Cause

This is because the Team Calendars for Confluence macro is not currently compatible with the JIRA Page Gadget. It is an Improvement Request that is being tracked here:

If you would like to see this implemented, please vote on that ticket, and add a comment detailing how it affects your system and what you would like to see. If you also add yourself as a watcher to the ticket, you'll be notified whenever it's updated.

Updated on April 24, 2025

Still need help?

The Atlassian Community is here for you.