← All examples

JavaScript Developer & QA trello.com

Trello: dump the board as text to the console

Prints a list-and-card outline of the board to the browser console, ready to copy.

Code to copy

// Dump the board as a plain list/card text outline to the console
(function () {
  const out = [];
  document.querySelectorAll('[data-testid="list"], .js-list-content').forEach(function (list) {
    const name = list.querySelector('[data-testid="list-name"], .list-header-name');
    out.push('# ' + (name ? name.textContent.trim() : 'List'));
    list.querySelectorAll('[data-testid="card-name"], .list-card-title').forEach(function (c) {
      out.push('  - ' + c.textContent.trim());
    });
  });
  console.log(out.join('\n'));
})();

How to use this example

  1. Copy the code with the button above.
  2. Install JustZix (2 minutes) and open the extension on the target page.
  3. Add a new rule matching that page.
  4. Paste the code into the rule's JavaScript panel and save — it runs on every page visit.

Rate this example

No ratings yet — be the first.

Does this example work?

Snippets are useless without somewhere to paste them.

JustZix takes 2 minutes to install and runs your code on every matching page. No account, no payment.

Download free See use cases