Nesting one expand macro in another

Trevor Edwards August 6, 2019

I am attempting to use an expand macro inside another expand macro and according to this page, it is supposed to work. Anyone have a solution?

https://confluence.atlassian.com/doc/expand-macro-223222352.html

 

NOTE: I am attempting this on the new Confluence Blank page.

14 answers

2 accepted

11 votes
Answer accepted
Avinoam
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2019

Hi @Trevor Edwards and @Sharon Helms ,

I'm a PM working on the new editor in Confluence Cloud. We're currently in the process of redesigning a new experience for the expand macro which will allow it to both nest and work seamlessly on any device. 

We'll absolutely let you know once it's live!

Thanks,

Avinoam

Sharon Helms
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2019

Thanks, @Avinoam ! That's excellent news!

Like # people like this
Deleted user September 19, 2019

I am also looking forward to this!

daniel.reichert November 21, 2019

Same, we are using it heavily and now it is broken with the new UI. Is there an ETA when it will work again?

Like Deleted user likes this
Deleted user January 6, 2020

Happy New Year, @Avinoam

Any chance you've got some new updates for us in regards to this nested '/expand' functionality?  A number of us really rely on this and it's just making documents really sloppy and hard to read without it.  Even my scroll wheel is starting to wear out...  ;) 

Like Gary Haag likes this
Avinoam
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 6, 2020

Hi @[deleted] we recently released a new expand that also nests in table cells, however, it does not nest in other expands. You can read more about it here: https://community.atlassian.com/t5/Confluence-discussions/Introducing-our-new-and-improved-expand/m-p/1250620#M6662%3Futm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_comment&utm_content=topic

Like # people like this
Deleted user January 6, 2020

Thanks @Avinoam , I think I've figured it out using the tables.  Much appreciated!

Stuart_Beck January 23, 2020

@Avinoam , will nested Expand macros be returning? The lack of this feature is making some complicated documents incredibly hard to read and is a massive omission!

Like # people like this
Deleted user January 24, 2020

@Avinoam , I'm with @Stuart_Beck on this one - even trying to figure things out with tables, it's just not working and isn't a clean solution at all.  Right now we're having to change our layouts and hoping the nested /expand feature comes back soon.

Like Kim Miesse likes this
agrant March 9, 2020

@Avinoam Any update on this nested expand feature? I was using it in the old editor as recently as two weeks ago, but have since been forced to auto-update editors and it appears as though I've lost access to the immensely valuable nested expand. A response would be much appreciated!

Like # people like this
Morgan Smith April 20, 2020

It's frustrating how well designed features from prior versions are lost. I too would like nested expands like in prior versions of cloud and like how the self hosted version works. 

Like # people like this
Kim Miesse September 30, 2020

Hi, just wondering if there is an ETA for being able to nest expands in Cloud soon? Love this in the legacy editor!

Deleted user October 21, 2020

Also checking for an ETA on this. Using the table work around is really sub-par and much more time consuming. Thanks! 

Like Kim Miesse likes this
Jered Gordner January 6, 2021

Now that we're in 2021, I wanted to make sure this got bumped to see if @Avinoam has any news or updates for us about this feature. I ran into this issue today, did some Googling, and ended up here to my dismay. Thank you!

Like # people like this
Philip Ng January 16, 2021

@Avinoam As a previous local server install preparing to switch to cloud, this makes me sad as i am severely missing this feature. :-(

Like chad nash likes this
Mike Moore January 27, 2021

Also sad...

Like chad nash likes this
Deleted user June 23, 2021

What's up!

Like # people like this
gil.haham July 12, 2021

Dear Atlassian,

The community is yelling for this feature.
Is it not so complex, most of the components needed are exist, I guess it is just a priority matter then.

Is it in the working plan? if so, what is the ETA?

Please do not ignore us.
@Avinoam 
@Sharon Helms 

Like # people like this
Moravenov Jordan October 26, 2021

I also really need that feture! I was very surprised when I figured out I cannot create expand in another expand. It just makes sense to be able to do it. Now I am really strugling to organize my documents without it.

Like # people like this
Alex Iakubenko December 4, 2021

Recently moved to Atlassian, we need this feature support.

Any updates when it will be implemented?

Like # people like this
Karl March 15, 2022

Any updates on expands within expands? @Avinoam ?

Like # people like this
Ivan Romitcyn May 3, 2022

Hi all! I found out this app "Refined Toolkit for Confluence Cloud" which allows you to nest one UI expand in another & to use UI tab macro as well. 
For some reason this app works well in my old Atlassian account and is deprecated in another, saying that "the app is not compatible with the new Confluence editor". Anybody knows why and is there any alternatives? Thanks

Like # people like this
Craig Pero May 3, 2022

I cannot speak as to whom thought it would be a good idea to remove the nested expands (which are perfect for decision trees and compact documentation)... the only thing I can do is create an expand which has a page include to a child page.  That child page can have information displayed and you can add an expand which includes a sub child page further.  it is not glorious at all and quite inefficient but it produces the desired result of nested expands which takes numerous child documents to make that work.

Like # people like this
Josiah Burke June 27, 2022

***EDIT*** I have submitted this as an answer with a few extra details in hopes more people can easily see it



I have no idea if anyone is still actively following this, but the functionality is still there on the cloud side, it's just not existent in the editor. If you build pages dynamically using the APIs or have post-processing done via API calls to generate the pages, you can nest your expands. Below is a sample API call. In the below example, replace the items in double square brackets [[]] with your own content.

 

{
    "type":"page",
    "title":"[[$PageTitle]]",
    `"version":{
        "number":[[$VersionNumber]]
    },
    "space":{
        "key":"[[$PageSpace]]"
    },
    "body":{
        "storage":{
            "value":"<ac:structured-macro ac:name=\"expand\" ac:schema-version=\`"1\`" ><ac:rich-text-body><h1>First Nested Level</h1><ac:structured-macro ac:name=\"expand\" ac:schema-version=\"1\" ><ac:rich-text-body><h2>Second Nested Level</h2></ac:rich-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>",
            "representation":"storage"
        }
    }
}

Like # people like this
Philip Teoli July 22, 2022

Thanks and I am still following as this used to be functionality that existed out of the box. This used to really help in organizing bug trackers and so on. Unfortunately, I do not use the API so the last comment suggestion I do not think that I can use it. 

Like Jaspal Sidhu likes this
Jem Sinclair October 3, 2023

Bumping this one as well! My instance is writing an FAQ page for a Jira Service Management self serve portal, nesting an expand question within headers as an index quick search would be a super helpful feature to minimise the amount of reading per client.

Fingers crossed this gets actioned this year :)

Scott Bickerton November 7, 2023

Like Jem, I continue to be frustrated at the lack of nesting capability in Expand Macros in the new editor

0 votes
Answer accepted
Sharon Helms
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2019

Hi Trevor,

The doc you referenced (Cloud version) is from 2017 -- it used to be possible to next expand macros.

I'm guessing that you have the new Confluence editor active on your site? If so, that's why you can't nest one expand macro inside another.

I'm not sure if that functionality will be brought back. Fingers crossed!

9 votes
gil.haham July 12, 2021

Dear Atlassian,

The community is yelling for this feature.
Is it not so complex, most of the components needed are exist, I guess it is just a priority matter then.

Is it in the working plan? if so, what is the ETA?
Please do not ignore us.
2891 Views and still counting...


@Avinoam 
@Sharon Helms 

6 votes
Bernard Tai December 12, 2019

+1 to fixing expand on new Confluence Cloud. There are issues with: 

 

  • Not able to embed one expand within another 
  • Not able to insert expand sections between bullet points. Screenshots below: 

Screen Shot 2019-12-13 at 9.11.47 am.pngScreen Shot 2019-12-13 at 9.11.54 am.png

4 votes
Cata AV February 6, 2021

Hellllo, can your designers bring the expland within and expand????? That was the main purpose of using Atlanssian..because it was easy to write and explain the documentation in very organized way...wth is that you have now...oh wait a new design and colors??? Never touch a functionality if your users are using it!

2 votes
Ryan Fowler October 8, 2022

A Jira ticket requesting this feature has an update as of 06 Oct 2022!  It's Unresolved and currently "Under Consideration", so it looks like they're working on it again.  

(Fingers crossed)

2 votes
Josiah Burke June 27, 2022

I have no idea if anyone is still actively following this, but the functionality is still there on the cloud side, it's just not existent in the editor. If you build pages dynamically using the APIs or have post-processing done via API calls to generate the pages, you can nest your expands. Below is a sample API call. In the below example, replace the items in double square brackets [[]] with your own content. It still needs to be added to the editor itself, and this is far from a perfect approach, but it's the only option right now that I can see as feasible. If you attempt to use the cloud editor after using this method, you'll see the below error in sections you've used this work around.

 

ConfluenceError.PNG

 


{
    "type":"page",
    "title":"[[$PageTitle]]",
    `"version":{
        "number":[[$VersionNumber]]
    },
    "space":{
        "key":"[[$PageSpace]]"
    },
    "body":{
        "storage":{
            "value":"<ac:structured-macro ac:name=\"expand\" ac:schema-version=\`"1\`" ><ac:rich-text-body><h1>First Nested Level</h1><ac:structured-macro ac:name=\"expand\" ac:schema-version=\"1\" ><ac:rich-text-body><h2>Second Nested Level</h2></ac:rich-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>",
            "representation":"storage"
        }
    }
}


2 votes
Felix Mai August 31, 2021

@attlassian

reading those posts from 2019 onwards makes me a bit nervous. We've been storing a huge amount of content on the confluence server using several nested expand items. I checked out the Cloud version today and there's still no opportunity provisioned. For two years! Asking myself, why forcing your customers to use the cloud, when lacking major features. 

1 vote
ppadmanabhan April 13, 2023

Here is a workaround that I am using for lack of nested expand in confluence.

For each nested expand that I need, I have created different confluence pages with the default expand. Then, I used the "Include Page" macro to bring in all those pages with the expand. Now, when I open the parent page, I am able to see all those pages as a nested expand. 

It definitely solves my purpose and the individual pages are easy to maintain as well. 

Just thought of sharing this.

Moravenov Jordan April 17, 2023

Great!!! Exactly what I needed. Thank you.

1 vote
Craig Pero June 27, 2022

it seems that the absence of comments from Atlassian since 2019, it seems a safe assumption that nothing is going to happen.

Josiah Burke June 27, 2022
Like Jaspal Sidhu likes this
1 vote
John W. Thornton January 29, 2021

It looks like I can use an Include Page macro inside an Expand macro. If the included page has expands on it, the effect is the same as nested expands.

That won't work for all use cases, but it might for some.

1 vote
declan.hannon May 12, 2020

Why would you remove the ability to nest within nests it was by the far the single most useful feature confluence offered. The new UI change should only have been released if it actually added value. It does not you have made it look pretty but taken back critical functionality that made confluence a manageable space to log detailed workflows and documentation. The nests within nests also made embedding documents seamless without having pages that were 100 pages long. 

 

@Avinoam you promised last year this was being worked on yet instead more than 6 month later posted about table functionality that is clunky and doesn't solve the core problem.

You guys are building a product for Product owners how could you forget to identify the problem you are trying to solve when you released these tables? My concern is without this feature confluence will be largely redundant for anything other than minor workflows or analysis.

Bad Developer August 19, 2020

They said they are listening so everything should be fine :-)

The-new-editing-experience-we-re-listening 

1 vote
jimmy.baker March 20, 2020

Thank you @Trevor Edwards for posing the question.

 

@Avinoam   ...I am also wondering, in the absence of being able to nest within a nest, is there an alternative or better way of doing what I am attempting to do.

I would like to show "years" then to be able to expand that and show "months" and be able to expand each day of the month to show accomplishments of that day.

As you can imagine, the will become quite lengthy if not able to nest them.

Thank you in advance.

0 votes
Jaspal Sidhu August 14, 2019

Thanks @Trevor Edwards  , for bringing this up, this was the exact question I had as well. I use the expand macro function in all my documents (and then create nested expand boxes).


@Avinoam , thank you so much for clarifying that this functionality will return in the new editor.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events