Hide content if JIRA filter returns no results

I have a Confluence page with a JIRA Issue/Filter macro.  When the filter returns nothing it shows a table header followed by "No issues found".  Is there a way to hide the table under this circumstance, meaning: I only want to see the table and results if there are issues found.  I am trying to use the 'Hide content' macro but am unable to get the regex:value logic to work.  I was trying to either hide the content based on finding "No issues found" or show the content if it returned JIRAs in project ABC*  Thanks.  (Confluence 5.9.7)

1 answer

This widget could not be displayed.

For the "Hide content" macro's "Hide content based on matching condition" field, what is the "regex:value" pair pattern that will match on the following sample to find "No issues found"?


<span id="total-issues-count-1299210601">

                                            <a rel="nofollow" href="https://jira.blabla.com/issues/?jql=project%20=%20proj%20and%20issue%20in%20%28proj-385,proj-358%29%20and%20labels%20=%20test&amp;src=confmacro" target="_top">

                            <span>No issues found</span>



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

540 views 7 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you