Phabricator/Trello to Phabricator


 * T36 - Migrate Trello data to Phabricator
 * T821 - Trello migration script

Notes on conversion
General discussion in https://secure.phabricator.com/T3179


 * Export board from Trello
 * You can do it manually from Trello board menu
 * 500-line export-trello.py script at P1407, but that says "This script uses a trello enterprise export"

Both produce JSON


 * Import to Phabricator
 * choice A) Use PHP
 * The same cburroughs did:
 * P1403 to import-attachments.php
 * P1404 import-users.php (not relevant, we just need a mapping, but won't hurt if users have same e-mail in Phabricator as they did in Trello?)
 * P1405 to import-tickets.php (nothing specifically for Trello...)


 * Choice B) curl requests
 * basic createtask at https://phab-01.wmflabs.org/conduit/method/maniphest.createtask/
 * is it a problem the creator will be the person doing the import.
 * have to find other APIs to add comments, attachments


 * Choice C) bugzilla code
 * https://github.com/wikimedia/phabricator-tools/blob/master/README, https://github.com/wikimedia/phabricator-tools/blob/master/bugzilla_create.py
 * Python API requests

What projects?
Assign to Flow and to Core-features team?

Export
Trello export .json.

Backlog export JSON is too big for jsonlint.com, use

still converts stuff to Unicode escapes, e.g. "name": "Flow — backlog" to  "name": "Flow \u2014 backlog"

Use  to investigate.

Conduit
To get PHIDs for Conduit

On phab-01.wmflabs.org
https://phab-01.wmflabs.org/api/maniphest.createtask, just fill it out to create tasks. e.g. phab-01, Flow (test) is PHID-PROJ-ofxg2d73cpefxqnworfs

All fields are JSON, thus in double quotes and if field is plural, inside [ ] array.
 * copy-paste title of card into title inside ""
 * edit description, copy paste markup, paste into dscription inside ""
 * projectPHIds is ["PHID-PROJ-ID"], more if you want in multiple projects.


 * not sure about ownerPHID, editPolicy, etc.

Creates https://phab-01.wmflabs.org/T115 from https://trello.com/c/8v75OXK3

Hmmm.

No idea how to assign column in workboard in this. https://phabricator.wikimedia.org/project/board/401/

Tricky bits

 * Checkboxes. I don't see special support for them in cburroughs import-tickets.php
 * Attachments.