JIRA macro on Confluence Dashboard
Asked by Sasha Solig:

I have a custom Confluence Dashboard which I would like to include a JIRA macro on (to show the current user's open issues). By including the following code in my Global Layout I get the desired JIRA content, however, the loading icon (spinning wheel) will not disappear on page load.

```
$helper.renderConfluenceMacro("{jira:columns=type,key,summary,status|maximumIssues=10|jqlQuery=assignee = currentUser() AND resolution = Unresolved order by created desc}")
```

![Confluence Dashboard + JIRA Macro.png](/t5/image/serverpage/image-id/57303iDCD50EDC353206EB/image-dimensions/564x261?v=v2 "Confluence Dashboard + JIRA Macro.png")

Anyone have any ideas why this is happening?


Answers:
author: Mariana Aires
body: Did you ever find a solution for this? I'm having the same issue

comments: author: Sasha Solig
body: Sorry no we didn't.


author: Diego
body: Hello there!  
We could do a *quick test* , Sasha. ++*Create a New Page*++ and insert the ++*Jira Issues Macro*++ in that. After macro insertion, you can use the++*Same JQL as your custom code*++and then check if the behaviour is similar.

I tried but*could not* replicate this locally. I would like to first replicate the issue and then look for a solution. How does that sound?  
Is it be possible for you to share the *whole Global Layout code* you have running in your Confluence instance?   
Also, could you describe step-by-step how this modification was applied in your instance?
> ++***Important Note***++   
> ++*When sharing content from your instance, be careful not to disclose any sensitive information. Since Community is a public space, everyone can see everything posted here.*++

Looking forward to your reply Sasha!

comments: author: Sasha Solig
body: Hi Diego,

confirmed that the same macro on a new page works correctly (i.e. no loading icon).

Here is our Global Layout:

```
#* @vtlvariable name="params" type="java.util.Map<java.lang.String, java.lang.Object>
" *#
#* @vtlvariable name="infoPanelRequired" type="java.lang.Boolean" *#
#* @vtlvariable name="action" type="com.atlassian.confluence.dashboard.actions.DashboardAction" *#
#* @vtlvariable name="body" type="java.lang.String" *#
#* @vtlvariable name="helper" type="com.atlassian.confluence.themes.GlobalHelper" *#

## GLOBAL DECORATOR
## This decorator handles a global context, i.e. information which is independent of space.
## Supports modes: 'dashboard', 'userdir', 'rss'.

#set ($mode = $params.get("mode"))
#set ($context = $params.get("context"))
#set ($helper = $params.get("helper"))

#macro(renderInfoPanel)
## INFO PANEL FOR ANY PAGE
#infoPanelInitFromParams()
#if ($infoPanelRequired)
<div style="width: $params.get(" infopanel-width")" id="helptd">
#infoPanel(true true true true)
</div>
#end
#end

#macro(renderDashboardPanels $panelLocation)
$deprecated.since("6.0")
#foreach ($webPanel in $webInterfaceManager.getDisplayableWebPanels($panelLocation, {}))
<div class="dashboard-item">
$!webPanel.getHtml($req.getParameterMap())
</div>
#end
#end

#requireResourcesForContext("global")
<div class="pagebody">
#parse ("/template/includes/actionerrors.vm")


#rssautodiscovery($action.rssDescriptor)
#permitSearchEngines()
## If one or more plugins provide a web-panel to replace the dashbaord, we use the first one
#set ($dashboardWebPanels = $webInterfaceManager.getDisplayableWebPanels("atl.dashboard", {}))

## Dashboard from plugin
<content tag="show-main-container">false</content>

<div class="confluence-dashboard">
<div id="nav-sidebar" class="aui-sidebar ">
<div class="aui-sidebar-wrapper">
<div class="aui-sidebar-body">
<nav class="aui-navgroup aui-navgroup-vertical">
<div class="aui-navgroup-inner">
<div id="sidebar-discover" class="aui-sidebar-group aui-sidebar-group-tier-one sidebar-discover spa"></div>
<div id="sidebar-my-work" class="aui-sidebar-group aui-sidebar-group-tier-one sidebar-my-work spa"></div>
<div id="sidebar-spaces" class="aui-sidebar-group aui-sidebar-group-tier-one sidebar-spaces"></div>
</div>
</nav>
</div>
<div class="aui-sidebar-footer">
<a class="aui-button aui-button-subtle aui-sidebar-toggle aui-sidebar-footer-tipsy" data-tooltip="Expand sidebar ( [ )" href="#">
<span class="aui-icon aui-icon-small"></span>
</a>
</div>
<div class="aui-sidebar-handle"></div>
</div>
</div>
<div class="aui-page-panel">
<table>
<tr>
<td width="54%" style="vertical-align: top;">
<div class="dashboard-item welcome-message wiki-content">
$action.welcomeMessage
<h4 id="WelcometotheWiki"><strong>My Open JIRA Issues</strong></h4>
$helper.renderConfluenceMacro("{jira:columns=type,key,summary,status|maximumIssues=10|jqlQuery=assignee = currentUser() AND resolution = Unresolved order by created desc}")
<br><br>
$helper.renderConfluenceMacro("{blog-posts:max=15|spaces=@all|content=titles}")
</div>
</td>
<td>&nbsp;</td>
<td width="45%" style="vertical-align: top;">
<div class="panel" style="background-color: #eee;border-color: #ccc;border-width: 1px; padding: 10px;">
$helper.renderConfluenceMacro("{include:AS:Wiki Dashboard News Feed}")
</div>
<div class="aui-page-panel-inner">
<section class="aui-page-panel-content content-body"></section>
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="dialogs"></div>
</div>
```

This layout originated in a much earlier version of Confluence. We customised it to include a local news feed page (via the include macro) and modified column widths to suit our site.


Tags: atl-adm

confluence-server

dashboard

developer

jira

macro