Hi Fogbugz:
I need a function to collapse the subtasks, I find the answer in follow link "Is there a way to bulk-collapse all of the cases in a filter?"
The same JavaScript code worked fine in BugMonkey 1.x. After I upgraded to Fogbugz 8.3.42 with BugMonkey 2.x, the JavaScript code no longer works, it shows "toggleAllHierarchies is not defined" in Chrome browser. I think BugMonkey 2.x has bug.