Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to hide hr if table filter is empty

sa_mejia I'm New Here Mar 04, 2021


I'm trying to hide a <hr/> rule inside a table filter when the table filter returns no values. 
Is there any way to achieve this? Screenshot_11.png

1 answer

Hi @sa_mejia ,

I can suggest wrapping your Table Filter macro into the Table Transformer macro:




So when you don't have any suitable rows to display, you'll get a blue info message that there are no any rows returned (not the empty table header row as you had before).

sa_mejia I'm New Here Mar 08, 2021

Thanks for your reply, 
I was thinking in something that allows me to hide some elements that are inside of this filter like the hr (horizontal rule) when there's a filter applied and there are no matches, probably via CSS.

something like .tablefilter:empty(){ hr class-name {display : none;}}

We often use CSS to hide specific items from the Table Filter menu. Here is an example of several expressions to hide the "Hide columns" option for the different variants of the macro usage.

What exactly do you need to do? Do you use a filtering panel and when there are no any results you want to hide it? So your colleagues won't see it and won't know about the applied filters?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

Introducing Confluence Cloud for Microsoft Teams (Available for Preview!)

Hi Atlassian Community, Remote work has shifted how teams collaborate, and we’ve heard from many of you that Microsoft Teams has become mission critical to many of your workflows, from how you chat...

2,486 views 21 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you