Last active
July 15, 2019 19:30
-
-
Save codingtony/1a3fde5c700004b96c0a02dafd8d8565 to your computer and use it in GitHub Desktop.
Trello checklist backup with jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
jq 'INDEX(.cards[]; .id) as $card | .checklists[] | { "card":$card[.idCard]|.name,"description":$card[.idCard]|.desc,"checklist":.name, "items": [.checkItems[] | (if .state=="incomplete" then .name +" [ ]" else .name + " [X]" end)]}' < $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment