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

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>

                        </a>

                                    </span>

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

407 views 17 9
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