Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Question about an Expand Macro within another Expand macro, and displaying the title

How do I get an expand macro title, that is located within another expand macro, to display the second macros title without having to open the first expand macro. I want the titles to be displayed like a table of contents.


That's not really possible using the expand macros. What effect are you trying to achieve? Maybe there is another possibility.

The effect that I'm trying to achieve is an organized document that allows users to look for a specific title and see all the tables that are associated under that title. I have tables in each expanded macro that are displaying data that is further broken down into various levels/indention. Its a lot of information to look through, so I need a macro that is collapsible.  Something that has similar capabilities of the Expand macro and table of content macro that will allow me to display both the title and allow expand/minimize quality.

I got it to kind of work. It's definitely not something that the Confluence editor wants to do.

kind of works.PNG

I started with expand 1, then created a new line, added a bullet, then added another expand macro. I'm not sure what the effects would be if you added more layering, but this is likely the closest you'll get in the current version of Confluence.

Alternatively, you could have a non-layered list of expand macros and name them to reflect their hierarchy, like 1 Heading with 1.1 Sub-heading and 1.2 Sub-heading underneath it.

I hope this helps!

I tried your bullet point method that you suggested however, it didn't work for what I was trying to do. My first expand macro table isn't indented, but the second one is and then the third one goes back to no indention. The third one also doesn't need a title because the table info should fall under the first expanded macro. Sorry if this is confusing. 

If you could include a screenshot, that would help immensely. Otherwise, you'll have to be more specific in your description.

There's no way to have some content displayed when an expand macro is closed.

Alternatively, you could convert the tables into images and then display them as a link so when the expand macro is opened the user isn't overwhelmed by information. (unless you need to be able to include links or selectable text in your table)

I think I might've exhausted all my ideas. If you figure out a way to do it, please update the Community so we can share the solution and answer future questions.


Log in or Sign up to comment
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

753 views 5 21
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