public
Created

Parse Trello XML Dump

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
Sample output, the result of processing this board: Board: https://trello.com/board/coolest-project-ever/4ec946d2772461073dbcce4c
 
 
Total number of lists: 6
--------
List: Sprint 5
--------
Fix input form
Fix bug #1315 - user can't login
Add Update User flow
 
 
--------
List: Small
--------
Install Google Analytics
Change header color to Blue
Write tests for FooController
More cool stuff
More cool stuff
More cool stuff
More cool stuff
 
 
--------
List: Medium
--------
Analyze DB performance on JOIN queries
Fix bug #112 - app crashes "sometimes"
Consider migrating to jQuery 3.6
Medium cool stuff
Medium cool stuff
Medium cool stuff
Medium cool stuff
 
 
--------
List: Large
--------
Migrate to MongoDB
Implement a plugin system
Write a user management App
A few large cool stuff
A few large cool stuff
 
 
--------
List: Code Ready
--------
User can change colors
Fixed speed issue when reloading page
 
 
--------
List: Deployed, To Review
--------
First app version
New look for homepage
Ajax forms
parse_trello_dump.groovy
Groovy
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Parse output of http://bryanesmith.com/downloads/trello-dump/
// See also http://webapps.stackexchange.com/questions/20883/how-do-i-get-my-data-out-of-trello
def xmlStr = new File("trello.xml").getText();
 
def records = new XmlParser().parseText(xmlStr)
def lists = records.list
println("Total number of lists: " + lists.size());
 
for (def list : lists) {
println("--------")
println("List: " + list.title.text())
println("--------")
for (def card : list.card) {
println(card.title.text());
}
println("\r\n")
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.