Skip to content

Instantly share code, notes, and snippets.

@joeangel
Last active October 6, 2022 02:56
Show Gist options
  • Save joeangel/f61a1e085a1946866c73f6e3f382ff16 to your computer and use it in GitHub Desktop.
Save joeangel/f61a1e085a1946866c73f6e3f382ff16 to your computer and use it in GitHub Desktop.

Trello Helper

Get started

  1. Open Trello Board in Chrome Broewer
  2. Enable Chrome Developer Tools
  1. Copy and past in Chrome url on your Trello webpage.
  2. remove trelling backslash sign \
  3. Switch Tab to Console in Chrome Developer Tools, and you will see the result

How many Trello Cards in all List

\javascript:var result = $("div .js-list.list-wrapper").map( function() {
  let title = $(this).find(".list-header h2").text();
  let nCard = $(this).find(".list-cards a").length;
  return {[title]: nCard}
}).get();
console.log(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment