Skip to content

Instantly share code, notes, and snippets.

@andyburnett
Created November 9, 2014 13:11
Show Gist options
  • Save andyburnett/2212fa88feff30e64a2b to your computer and use it in GitHub Desktop.
Save andyburnett/2212fa88feff30e64a2b to your computer and use it in GitHub Desktop.

Revisions

  1. andyburnett created this gist Nov 9, 2014.
    12 changes: 12 additions & 0 deletions Trello to Google Spreadsheet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    temp1 := ZnEasy get: 'address in here'.

    trello := NeoJSONReader fromString: temp1 entity.
    trelloLists := trello at:'lists'.
    trelloCards := trello at:'cards'.
    trelloLists do: [ :each|| listId |

    listId := each at:'id'.
    each at:'cards' put: ((trelloCards select:[:item|(( item at:'idList')=listId)])collect:[:item| item at:'name']).
    ].

    trelloLists do: [ :each| Transcript show: (each at: 'name'); cr. ((each at: 'cards')do:[:item| Transcript tab; show: item;cr])].