Skip to content

Instantly share code, notes, and snippets.

@EmilStenstrom
Created August 15, 2019 11:15
Show Gist options
  • Select an option

  • Save EmilStenstrom/5097c25685e04e1f4a2f9a0bdd9c0a3a to your computer and use it in GitHub Desktop.

Select an option

Save EmilStenstrom/5097c25685e04e1f4a2f9a0bdd9c0a3a to your computer and use it in GitHub Desktop.

Revisions

  1. EmilStenstrom created this gist Aug 15, 2019.
    8 changes: 8 additions & 0 deletions trello-list-to-slack-message.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    var s = [];
    jQuery(".list:has(.list-header-name[aria-label='Kundo Knowledge'])").each(function() {
    s.push("\n## " + jQuery(this).find(".list-header-name")[0].value + "\n");
    jQuery(this).find(".list-card-title").each(function() {
    s.push('• ' + this.innerText + ': https://trello.com' + jQuery(this).parents(".list-card").attr("href"));
    });
    });
    console.log(s.join("\n"));