Skip to content

Instantly share code, notes, and snippets.

@mrw34
Last active May 21, 2024 10:47
Show Gist options
  • Save mrw34/b12531d1a8df25f6c170 to your computer and use it in GitHub Desktop.
Save mrw34/b12531d1a8df25f6c170 to your computer and use it in GitHub Desktop.
Trello JSON to CSV conversion using jq
jq -r '["List", "Card"], ((reduce .lists[] as $list ({}; .[$list.id] = $list.name)) as $lists | .cards[] | select(.closed != true) | [$lists[.idList],.name]) | @csv' <nw3RUeLl.json
@ndtreviv
Copy link

ndtreviv commented Jul 19, 2022

Feature request: Include description, and labels?

jq -r '["List", "Card", "Description"], ((reduce .lists[] as $list ({}; .[$list.id] = $list.name)) as $lists | .cards[] | select(.closed != true) | [$lists[.idList],.name,.desc]) | @csv' <nw3RUeLl.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment