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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,567 views 26 14
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