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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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 wrap Confluence table with {expand} macro

I have some tables with hundreds of rows, which requires a lot of scrolling to see the content below them, so I'd like to make the tables expandable. I've studied this page, searched for similar questions, and mocked up several tests, but so far: no joy.

I am able to construct an expandable table that functions properly in preview mode:Expandable Table in Preview.png

but after I click the Save button the table is no longer expandable:

After Clicking Save button.png

As you can see in the image just above, the text Click here to expand... is not a clickable link, nor is the right-arrow. And clearly the table is already expanded, not hidden, like it is at the top of the first image.

It doesn't matter if I use the macro browser to insert the expand, or if I type up the markup by hand; either way I get an expandable table that works in Preview mode but fails after it's saved.

Given that the expandable table functions perfectly in Preview mode, it appears that the failure after the Save button is pressed is a bug. Hopefully this is an easy one to fix?

 

1 answer

1 accepted

Hello John,

I tried to reproduce your issue, but Expand macro works with table inside both on page and inside a comment. I used Confluence 6.7.1. What is your Confluence version?

And here is an alternative solution you may find useful: use Table Filter macro to freeze the first row. See how it works here.

Thank you for that very rapid response, Andrey. I'm new to Confluence, so this might not be the answer you're looking for, but I clicked the question-mark-in-a-disc icon, then clicked About Confluence and see a pop-up that includes

 

License Information for Confluence Cloud

Confluence 1000.0.0

 

I don't think that 1000.0.0 is the version number you're looking for. If there's a different version number somewhere in Confluence then you might have to instruct me how to provide it for you.

FWIW, purchasing Table Filter is probably not an option.

You are using Confluence Cloud, that means it is always the latest but the same as the latest Confluence Server version.

I tried it on Cloud version and reproduced the issue when Expand macro is in a comment. But after I added Expand macro to the page with that comment, it fixed the issue. 

So the workaround is to add an empty expand macro to the page to be able to use it in comments.

Also you can report this issue to Atlassian support team.

Thanks, again. I'm going to look into this:

the workaround is to add an empty expand macro to the page to be able to use it in comments.

I did some more testing and have the same problem with an image wrapped in `{expand}` macro in a comment.

@Andrey Khaneev _StiltSoft_ that work-around is working for me, thank you! 

Glad to help you, John!

My experience is that I can no longer create an expand macro within a table. The macro gets added to the bottom of the page, below and outside of the table. This issue/change arose with updates to Confluence in the last couple of months.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

302 views 23 8
Join discussion

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