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"));
Note — It might be hard to get this to work via a Chrome extension for web/security reasons, but if you do, send me a note!
See -> https://twitter.com/jeremyzilar/status/766074858392457216
I use TextExpander and have set this up to easily paste upon a key command.
(code modified via http://www.secretgeek.net/trello_ws)