Skip to content

Instantly share code, notes, and snippets.

@diegovalle
Forked from jeremyzilar/trello.md
Last active February 13, 2024 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegovalle/c28528999446939e09f97e0130d08841 to your computer and use it in GitHub Desktop.
Save diegovalle/c28528999446939e09f97e0130d08841 to your computer and use it in GitHub Desktop.
Copy Trello Board as text or markdown

Copy Trello Board as text or markdown

Wouldn't it be nice to copy out your Trello board as plain text or markdown to be able to put it in a weekly memo, shipping notice or release notes? Now you can!

How to use this

Copy this line of JS and paste it into the CONSOLE in your browser. The results will be saved to your clipboard.

Option 1: Copy your Trello Board as Markdown

This will copy your columns + cards as markdown right to left

var s = []; s.push("# " + jQuery(".board-canvas").children()[0].innerText); jQuery.fn.reverse = [].reverse; jQuery(".list:has(.list-header-name)").reverse().each(function() {s.push("\n## " + jQuery(this).find(".list-header-name-assist")[0].innerText + "\n"); jQuery(this).find(".list-card-title").each(function() {s.push("* " + this.innerText); }); }); copy(s.join("\n"));
Option 2: Copy your Trello Board as Markdown

This will copy columns + cards as markdown, left to right

var s = []; s.push("# " + jQuery(".board-canvas").children()[0].innerText); jQuery(".list:has(.list-header-name)").each(function() {s.push("\n## " + jQuery(this).find(".list-header-name-assist")[0].innerText + "\n"); jQuery(this).find(".list-card-title").each(function() {s.push("* " + this.innerText); }); }); copy(s.join("\n"));
Option 3: Copy your Trello Board as Plain Text

This will copy your columns + cards as plain text, right to left

var s = []; s.push(jQuery(".board-canvas").children()[0].innerText); jQuery.fn.reverse = [].reverse; jQuery(".list:has(.list-header-name)").reverse().each(function() {s.push("\n" + jQuery(this).find(".list-header-name-assist")[0].innerText + "\n"); jQuery(this).find(".list-card-title").each(function() {s.push("- " + this.innerText); }); }); copy(s.join("\n"));
Option 4: Copy your Trello Board as Plain Text

This will copy your columns + cards as plain text, left to right

var s = []; s.push(jQuery(".board-canvas").children()[0].innerText); jQuery(".list:has(.list-header-name)").each(function() {s.push("\n" + jQuery(this).find(".list-header-name-assist")[0].innerText + "\n"); jQuery(this).find(".list-card-title").each(function() {s.push("- " + this.innerText); }); }); copy(s.join("\n"));

This is the full, expanded JS for Option 1
var s = [];
s.push("# " + jQuery(".board-header").children()[0].innerText);
jQuery.fn.reverse = [].reverse; // Copies columns starting from right to left
jQuery(".list:has(.list-header-name)").reverse().each(function() {
  s.push("\n## " + jQuery(this).find(".list-header-name-assist")[0].innerText + "\n");
  jQuery(this).find(".list-card-title").each(function() {
    s.push("* " + this.innerText);
  });
});
copy(s.join("\n"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment