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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,695 views 26 10
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