Customizable Panel icons are not contained in export_view

Hey there,

Our app uses the API endpoint /rest/api/content to get the body.export_view of pages and process it. Today, we checked again if we can add add support for custom icons on panels. They’ve been announced in May 2022.

Unfortunately, custom icons are NOT included in the export view. Like, not at all. To give an example, I just created this panel with a custom color and emoji:

Now, when I fetch the body.export_view of this page, this panel comes out as:

<div class="panel" style="background-color: #F4F5F7;border-width: 1px;">
   <div class="panelContent" style="background-color: #F4F5F7;">
      <p>This ninja panel on a slim grey background is very secretive.</p>

So, I get the custom color, which is nice, but the custom emoji is completely not included, the ninja is missing. To compare, default panels like the info panel are exported like that:

<div class="confluence-information-macro confluence-information-macro-information">
   <span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span>
   <div class="confluence-information-macro-body">
      <p>Info Panel keeps info.</p>

Notice the lovely span tag with the aui-icon class. We can work with that.

I cannot find a ticket in the CONFCLOUD project for that. I’m a little surprised this is still missing after such a long time. Are there any chances those emojis will be included in the exports?


1 Like

For anybody interested, there’s a bug opened for this now: see CONFCLOUD-77664.

1 Like