You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Is there a way to make the code block collapsible in the v2 editor? i can't find an option for it, and it needs to be collapsible, since the json im putting in there is 6000 lines long
Thank you for bringing this up. It's not yet possible while we roll about the new editor, but we have a feature request below that would include that:
Please vote on the feature request and you will be automatically added to the list of watchers.
As a workaround, you might want to attach the code in a text file with a preview snippet using the code block macro.
Let me know if you have any further questions about that.
Welcome to Atlassian Community! It's nice to meet you.
The Code macro has replaced the original Code Block macro. The Code Block Macro was the one that has the ability to collapse, the Code macro does not.
The feature request I shared with Mat earlier would hopefully include a collapsible option for the new Code macro.
Can you confirm that you're able to insert the Code macro using the slash / command in the new editor?
Thank you for following-up on this thread. I agree that the Code macro is definitely lacking in comparison to the Code Block macro.
However, the Code macro is a different macro entirely, thus the feature request for the missing capabilities that were offered in the former Code Block macro.
There are multiple other missing features in the new version of the editor, so if you encounter anything else you find that is sorely lacking, you can compare with our Confluence Cloud Editor Roadmap to see if it's a feature we plan to include in the future.
We're over 3 years out from the initial ask. I'd say this is normal for Atlassian, but it's actually advanced. Here, they've decided to close both issues asking (so far), this implying the finality in the reduced feature set of our "upgrade".
As usual, it feels like Atlassian is begging for competition that somehow hasn't shown up yet.
Atlassian remove existing functionality as part of upgrade. Users request to fix, results in a feature "suggestion". 2 years later they are still considering it.
Fireman lights a house on fire. The occupant calls to the fireman for help. Fireman commences thinking about what should happen next...
In case it isn't clear, we are the occupants of the house that is on fire. Atlassian, are you even listening any more?
Thank you for your reply. I looked into the request, and as of April, there's an updated version of this request. This includes the requirement for collapsible code blocks.
You can follow that here:
Thank you again for your feedback, and take care.
It shouldnt be a problem. Redmine and other markdown tools have this functionality apparently with simplicity:
text to collapse
Why this is so complicated to atlassian?
If this is solved, why is it still not working
I want a table to have a collapsible code block
Atlassian why are you doing this to me???
This is clearly a bug. Any significant technical design requires large code blocks but without the collapse feature, the document becomes TL;DR - this is a bad dog moment for atlassian :-(
I discovered if one has an older document that used the older code block macro, it is possible to copy that document and with it will be capability to include the older code block macro with the collapse feature.