Hide content if JIRA filter returns no results

CraigA February 18, 2017

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

0 votes
CraigA February 28, 2017

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
TAGS
AUG Leaders

Atlassian Community Events