daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function exportArchivedCards()
  2. {
  3.   var trell = new Trellinator();
  4.   var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("My Board Export");
  5.   var archive_list = trell.board("My Archive").findOrCreateList("My Board Archive "+Trellinator.now().butlerDefaultDate());
  6.  
  7.   TrelloApi.searchCardsInBoards(trell.board("My Board"),"is:archived").each(function(card)
  8.   {
  9.     sheet.appendRow([card.link(),card.name(),card.description()]);
  10.     card.unArchive().moveToList(archive_list);
  11.   });
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top