Hide Empty Table if JQL / Jira Filter Returns No Results (No Issues Found)
Asked by Emily Berg:

Hello Community,

I have a Confluence page with a JIRA Issue/Filter macro. When the filter returns zero results it shows a table header followed by "No issues found". Is there a way to hide the table under this circumstance, i.e. I only want to see the table and results if there are issues found.

Image shows current implementation with "no row" table appearing in Confluence page. I would like to hide this when zero results are returned.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/135863i899DDBC86E9B6457/image-size/large?v=v2&px=999 "image.png")

Thank you,

Emily


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Emily Berg](/t5/user/viewprofilepage/user-id/4210574) ,

If you use the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=server&tab=overview) app in your company, you may use its [Table Transformer](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro) macro to hide the "No issues found" message.

Wrap your Jira Issues macro into the Table Transformer macro body and choose the following tab into its settings:

![Thu 3-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/135872i28C4CBC69C88BC80/image-size/large?v=v2&px=999 "Thu 3-1.png")

Here is how your full result table will be displayed:

![Thu 3-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/135873iC6567BE7ABEE9B88/image-size/large?v=v2&px=999 "Thu 3-2.png")

And here is an example of the empty table (no rows returned):

![Thu 3-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/135876i30B7FFA88C7806CD/image-size/large?v=v2&px=999 "Thu 3-3.png")

Hope this may help you case.

comments: author: Emily Berg
body: This worked great, thank you! I did add in the HTML macro as suggested by Katerina below to completely remove the banner. Thank you for your fast response.

Emily


author: Katerina Rudkovskaya [Stiltsoft]
body: Hello [@Emily Berg](/t5/user/viewprofilepage/user-id/4210574) ,

Please use the following CSS to remove the message:

**.table-joiner .wrapper .aui-message.info.aui-message-info{ display: none; }**

Add the following CSS to the [global, space stylesheet](https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html#StylingConfluencewithCSS-GettingStarted) or [the HTML macro.](https://confluence.atlassian.com/doc/html-macro-38273085.html)

![2021-03-25_14h16_52.png](https://community.atlassian.com/t5/image/serverpage/image-id/135874i725D19F0D0468B80/image-size/large?v=v2&px=999 "2021-03-25_14h16_52.png")

Please note that the 7.1.13 version of Table Filter and Chart already provides the possibility to hide all your source content. Please update and hide it in your case.

![2021-03-25_14h13_45.png](https://community.atlassian.com/t5/image/serverpage/image-id/135875i37F60FE9AF1B0A59/image-size/large?v=v2&px=999 "2021-03-25_14h13_45.png")

Before:

![2021-03-25_14h18_50.png](https://community.atlassian.com/t5/image/serverpage/image-id/135878i85C9ADB09F82D8B5/image-size/large?v=v2&px=999 "2021-03-25_14h18_50.png")  

After applying CSS and hiding all content:

![2021-03-25_14h18_11.png](https://community.atlassian.com/t5/image/serverpage/image-id/135879i549897207C76A8DF/image-size/large?v=v2&px=999 "2021-03-25_14h18_11.png")

<br />

Katerina  
Stiltsoft

comments: author: Emily Berg
body: Hi [@Katerina Rudkovskaya \[Stiltsoft\]](/t5/user/viewprofilepage/user-id/3738229) and [@Katerina Kovriga {Stiltsoft}](/t5/user/viewprofilepage/user-id/1464746)

This is a great start, thank you! Two follow-up questions:

1. Although the table data no longer appears within the Confluence page, it DOES still appear when I export the page to PDF (using Scroll PDF). Any thoughts on how to translate to the export?

2. I see that the HTML text is specific to removing the banner. Is it possible to remove the banner AND replace it with text? E.g. Remove the banner, but display "No Issues Found". And again, I would like only the text to be exported, not the banner and not the table.

Thank you!!

Emily


author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Emily Berg](/t5/user/viewprofilepage/user-id/4210574)  

1. We'll investigate it and get back to you.

2. Please try to create a small manually created table with the following words inside it: "No Issues Found". Then wrap it and your source table with Table Transformer and use the following SQL query:  

SELECT \* FROM T1  

![2021-03-25_23h52_06.png](https://community.atlassian.com/t5/image/serverpage/image-id/136001iEA532A86AFA041B2/image-size/large?v=v2&px=999 "2021-03-25_23h52_06.png")![2021-03-25_23h52_15.png](https://community.atlassian.com/t5/image/serverpage/image-id/136002i9BA6A36EF82B3D1E/image-size/large?v=v2&px=999 "2021-03-25_23h52_15.png")

By the way, in this case the source table is not exported.  

Katerina  
Stiltsoft


author: Emily Berg
body: Hello [@Katerina Rudkovskaya \[Stiltsoft\]](/t5/user/viewprofilepage/user-id/3738229) ,

Excellent solution, thank you my export looks great!

Emily


author: Katerina Rudkovskaya [Stiltsoft]
body: Hello [@Emily Berg](/t5/user/viewprofilepage/user-id/4210574) ,  

We've released the fix for th? following issue in the 7.2.0 version:  

1. Although the table data no longer appears within the Confluence page, it DOES still appear when I export the page to PDF (using Scroll PDF). Any thoughts on how to translate to the export?

Katerina  
Stiltsoft


author: Chris
body: Hi [@Katerina Rudkovskaya \[Stiltsoft\]](/t5/user/viewprofilepage/user-id/3738229)

does this also work for the chart from table macro?How?

I tried (within a html macro as described)

\<style\>  

.table-joiner .wrapper .aui-message.info.aui-message-info{ display: none; }  
.table-chart .wrapper .aui-message.info.aui-message-info{ display: none; }  

\</style\>

as I use tables and charts, which might have an empty result set.

BR

Chris


author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Chris](/t5/user/viewprofilepage/user-id/4642216),

As far as I understand you'd like to hide these messages in your case:

![2021-11-19_16h37_37.png](https://community.atlassian.com/t5/image/serverpage/image-id/170228i92FEF078C2323DBB/image-size/large?v=v2&px=999 "2021-11-19_16h37_37.png")

Please use this CSS then:  

\<style\>  

.table-joiner .wrapper .aui-message.info.aui-message-info{ display: none; }  
.tf-chart-message.no-table-message { display: none !important; }

\</style\>  

Katerina   
Stiltsoft


author: Rachi Manwal
body: How can I print a custom message when there are no rows returned?


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Rachi Manwal](/t5/user/viewprofilepage/user-id/5036129) ,

You may use the option given by [@Katerina Rudkovskaya \[Stiltsoft\]](/t5/user/viewprofilepage/user-id/3738229) on 25 Mar, 2021 with an additional Table Transformer and a mini-table.


author: Stiltsoft support
body: Hi guys,

We've added the possibility to customize the standard macro messages for our macros.

Here are the screenshots for the Table Transformer and Chart from Table macros, but the same settings were also introduced for the Table Filter and Pivot Table macros:

![Wed 8-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/266837i04628A19F199BFA9/image-size/large?v=v2&px=999 "Wed 8-1.png")![Wed 8-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/266838i22AAF9FDE292B54B/image-size/large?v=v2&px=999 "Wed 8-2.png")

Hope that now your experience with the Table Filter and Charts for Confluence app will be more pleasant.


Tags: confluence-server

filter

macro

server