Error when adding Test Execution Progress macro on Confluence Page
Asked by Cdnyoung:

Hello,

I am trying to add a donut graph of our Automated Test Suite to a confluence page via the "Test Execution Progress" Macro. However, when I add this in, the macro only displays

"No data found !"

There is another macro called "Test execution" that is a bar graph and it displays the information correctly.   

These are both connected to Zephyr test cycle executions, and both of these macros work in our JIRA instance. But when I add the Macro to confluence, i just get the error mentioned above.

Is this a known issue or is there a fix? Anyone else see this? Thanks!

Here's a screenshot of the Macro after saving the changes on the confluence page:

![Screen Shot 2020-01-27 at 2.04.35 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/80621iE277AAFC188DED62/image-dimensions/487x210?v=v2 "Screen Shot 2020-01-27 at 2.04.35 PM.png")


Answers:
author: DIGIT CITnet
body: Hello [@Cdnyoung](/t5/user/viewprofilepage/user-id/1196913) ,

have you contacted Zephyr? We are experiencing the same issue.

comments: author: Cdnyoung
body: Thanks for the reply, just getting around to it actually. I'll update here if/when i hear back.


author: DIGIT CITnet
body: They told me it's an error with Confluence and i should contact Atlassian instead. Or I could buy the Zephyr Blueprints...


author: Cdnyoung
body: I wonder if anyone can confirm it's this issue that has been present since 2016(!)

<https://jira.atlassian.com/browse/CONFCLOUD-53622>

comments: author: achilles Garcia
body: no. doesnt seem to be the same. This is related to zephyr tests. in jira dashboard, the same macro chart builder works. but fails when added in confluence. Mine seems to be an issue when theres multiple folders added.


author: Cdnyoung
body: Thank you for your reply. Yep, i do have these graphs in JIRA dashboards and they are working.


author: Vijay Chand
body: Hello,

The issue still persisting as of today. Anyone got any pointer/workaround/resolution on this please?

Thank you!


author: Leya Abraham
body: Hi,

In the Confluence page source the "Test Execution Progress" Macro will be added as something like below.

```
<p>
<ac:structured-macro ac:macro-id=macro_id ac:name="gadget" ac:schema-version="1">
<ac:parameter ac:name="preferences">folders=null&amp;cycles=1234&amp;cycleExecutionStatusName=Test%20Execution%20Progress&amp;projectId=5678&amp;version=000&amp;chartType=pie&amp;showProjectName=true&amp;showVersionName=true&amp;isConfigured=true&amp;refresh=false</ac:parameter>
<ac:parameter ac:name="url">jira_url</ac:parameter>
</ac:structured-macro>
</p>
```

The issue is basically because Folder value is given as empty and it coming as null in macro **folders=null.**So as a workaround, removing this worked for me. Like below

```
<p>
<ac:structured-macro ac:macro-id=macro_id ac:name="gadget" ac:schema-version="1">
<ac:parameter ac:name="preferences">cycles=1234&amp;cycleExecutionStatusName=Test%20Execution%20Progress&amp;projectId=5678&amp;version=000&amp;chartType=pie&amp;showProjectName=true&amp;showVersionName=true&amp;isConfigured=true&amp;refresh=false</ac:parameter>
<ac:parameter ac:name="url">jira_url</ac:parameter>
</ac:structured-macro>
</p>
```


Tags: cloud

confluence-cloud

macro