# "COLLAPSE (or re-expand) ALL SECTIONS" button needed

**URL:** <https://forum.asana.com/t/collapse-or-re-expand-all-sections-button-needed/75827>\
**Category:** Features Launched\
**Tags:** launched\
**Created:** [27 February 2020 21:21 UTC](https://forum.asana.com/t/collapse-or-re-expand-all-sections-button-needed/75827 "2020-02-27T21:21:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Tony\_Tsui](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/tony_tsui/32/53661_2.png) [@Tony\_Tsui](https://forum.asana.com/u/Tony_Tsui)\
**Post date:** [20 April 2020 02:14 UTC](https://forum.asana.com/t/collapse-or-re-expand-all-sections-button-needed/75827/4 "2020-04-20T02:14:12Z")

</div>

Here is bookmarklet which collapses all sections via JavaScript

`javascript:(function () { document.querySelectorAll('.TaskGroupHeader-toggleButton .DownTriangleIcon').forEach(function (e) { e.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true })) }); }) ()`

---

_[View the full topic](https://forum.asana.com/t/collapse-or-re-expand-all-sections-button-needed/75827)._
