When viewing Sprint Board in Visual Studio Online, we don't have an option of Collapsing all work items or Expanding all work items. The below code help you achieve that using a short Javascript code!
javascript: function f()
{
for (var i = 0; i <= 100; i++) {
(document.querySelectorAll('[title="Collapse this row"]')[i]).click();
}
}; f();
- Open your browser and on the bookmarks bar, click on 'Add Page' (Chrome) or 'New bookmark' (firefox)
- In 'Name', write 'Collapse All'
- In 'URL' or 'Location' copy the Javascript code from above section and paste
- That's it! Now, you have 'Collapse All' feature which you can use to collapse all open workitems in your sprint backlog board!
javascript: function f()
{
for (var i = 0; i <= 100; i++) {
(document.querySelectorAll('[title="Expand this row"]')[i]).click();
}
}; f();
- Open your browser and on the bookmarks bar, click on 'Add Page' (Chrome) or 'New bookmark' (firefox)
- In 'Name', write 'Expand All'
- In 'URL' or 'Location' copy the Javascript code from above section and paste
- That's it! Now, you have 'Expand All' feature which you can use to expand all open workitems in your sprint backlog board!