Trello JSON を CSV に変換して Google スプレッドシートで管理する
Trello にて Export as JSON で出力した JSON を CSV に変換して Google スプレッドシートで管理する手順をご紹介します。
事前準備 Trelloparse インストール
Trelloparse は以下のコマンドでインストールできます。/usr/local/bin/ という PATH へインストールしています。
sudo curl https://gist.githubusercontent.com/RealOrangeOne/c35751ee794e90df512bdfba6f22574d/raw/trello-parser.py -o /usr/local/bin/trelloparse sudo chmod +x /usr/local/bin/trelloparse |
Trello カードを Google スプレッドシートへ変換する手順
Trello カードを Google スプレッドシートへ変換する手順は以下の通りです。
- [Menu] – [More] – [Print and Export] – [Export as JSON]
- Trello JSON parser
- JSON to CSV Converter Online
- Import Google Spreadsheet
Export as JSON
本記事用に Trello のサンプル Board CodeNote.net | Trello
を作成しました。
[Menu] – [More] – [Print and Export] – [Export as JSON] から以下のような JSON ファイルをダウンロードできます。
trelloparse で整形する
JSON ファイル https://trello.com/b/LlqGZTul.json をダウンロードして trelloparse コマンドで parse します。
$ cd ~/Downloads $ trelloparse LlqGZTul.json LlqGZTul-parsed.json Reading Data... Found 3 cards in 3 lists. Parsing... Output to /Users/username/Downloads/LlqGZTul-parsed.json!s Please visit https://json-csv.com/ to convert the output to CSV. |
JSON を CSV へ変換
trelloparse コマンドで parse した JSON ファイルを、ライブラリまたは json-csv.com などのサイトで JSON ファイルを CSV ファイルへ変換します。
Import file on Google スプレッドシート
最後に Google スプレッドシートにて CSV ファイルを import します。
以上、Trello カードを Google スプレッドシートで集計したい、現場からお送りしました。