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!
Copy this line of JS and paste it into the CONSOLE in your browser. The results will be saved to your clipboard.
This will copy your columns + cards as markdown right to left
var s = []; s.push("# " + jQuery(".board-header").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"));
This will copy columns + cards as markdown, left to right
var s = []; s.push("# " + jQuery(".board-header").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 will copy your columns + cards as plain text, right to left
var s = []; s.push(jQuery(".board-header").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"));
This will copy your columns + cards as plain text, left to right
var s = []; s.push(jQuery(".board-header").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"));
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"));
This is a bit old and probably website DOM changed a bit and the jQuery traversal is not working for me.
I needed a text list with titles of all cards in the Backlog list.
I did a JSON export (3 dots => Print, export and share => Copy as JSON) with some jq snippets extracting Backlog items: