Two bookmark scripts to open / close all swimlanes on a YouTrack Board
- Add a Bookmark in your browser and name it OPEN
- In the URL field of the bookmark paste the following:
javascript:(function () { const toggles = document.querySelectorAll('.yt-agile-table__row-title__summary__text'); toggles.forEach((toggle, i) => { const lane = toggle.closest('.yt-agile-table__row'); if (!lane) return; const isOpen = !!lane.querySelector('.yt-agile-table__row__cell'); if (!isOpen) { toggle.click(); } });})();- Navigate to your YouTrack Board
- Click the OPEN bookmark and all swimlanes opens
- Add a Bookmark in your browser and name it CLOSE
- In the URL field of the bookmark paste the following:
javascript:(function () { const toggles = document.querySelectorAll('.yt-agile-table__row-title__summary__text'); toggles.forEach((toggle, i) => { const lane = toggle.closest('.yt-agile-table__row'); if (!lane) return; const isOpen = !!lane.querySelector('.yt-agile-table__row__cell'); if (isOpen) { toggle.click(); } });})();- Navigate to your YouTrack Board
- Click the CLOSE bookmark and all swimlanes closes