How can I collapse all tasks at once instead of one task at a time?
Are you referring to sections? Not possible at the moment
Yep, called sections, not able to collapse them all (yet, hoping we could soon)
Thank you!
I wrote a bookmarklet for collapse projects at âMy tasksâ (Sort by: Project view)
Because I have too many task but quite a few projects.
This code (as bookmarklet) works for sections too (I tested a minute ago)
Fantastic, just what I was looking for.
NB when creating a bookmark for this, you only need the part in red for the bookmark URL
Hi Necat
Can you explain how to use your precious code?
I also need this functionality. How would I implement your code?
Has there been any Asana updates that all you to collapse ALL SECTIONS at once, like Linda_Lindsey referenced above?
No news. But now you can save as default a view where everything is collapsed!
Oh, sorry. I dont enter asana community for a long time and forgot this bookmarklet.
As @anon72909962 says you only need the âred partâ (code as url) when register a bookmarklet.
Steps: (For chromium browsers, I am using edge)
ADDING BOOKMARKLET
-
Go to favorites (or bookmarks)
1.a. For edge, this is edge://favorites
1.b. For chrome, this is chrome://bookmarks -
Add favorite or bookmark
Name:
asana collapse
URL:
javascript:(function(){document.querySelectorAll(â.TaskGroupHeader-toggleButton .DownTriangleIconâ).forEach(function(element){ element.parentNode.click() })}());
- You need to âshow bookmarks bar alwaysâ setting.
You have a bookmark at bookmark bar, and bookmark bar is always visible.
USING BOOKMARKLET
- Go to My tasks and at List View choose Sort by Project
- Click the bookmarklet at bookmarks bar.
Note: Asana lazy loads projects so if you have many projects lazy loaded projects may loaded not collapsed after the first projects collapse. You may need click more than once.
Hope this instructions helps. (I tested the bookmarklet when writing this steps and selectors does not change, its still working ă˝(â˘âżâ˘)ă )
The bookmarklet doesnât seem to work anymore (or Iâm doing something wrong.)
Any advice?
Nevermind, I pasted the URL wrong.
Correction for bookmarklet url: (I forgot mark the text with preformatted / monospaced, the single quote became an invalid javascript token)
There is the correct one:
javascript:(function(){document.querySelectorAll('.TaskGroupHeader-toggleButton .DownTriangleIcon').forEach(function(element){ element.parentNode.click() })}());