christophenne / trello2planka Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Don't write it to a temp-file, but instead use a stream to download from trello and then re-upload to planka directly.
I have gotten to this error when running
npm run import-sample-board
authenticated POST to https://--server--/api/projects/979344937311011849/boards
Error: authenticated POST failed, status code = 404, code = E_NOT_FOUND, problems = undefined
I looked up the endpoints in paths.js and I tried to manually hit them on my planka instance. I was able to make it work by extracting a auth token and using curl to include it in another request.
I found that only some of them worked and the pattern was:
cards/979345007557215244
works and returns data on that card but
cards/979345007557215244/labels
does not work.
The secondary layer calls never work.
Is this some issue which can be fixed in trello2planka or have these parts of the planka API not been finished yet?
thank you
Trello supports having multiple checklists in one card, and the check items (which would be the tasks in planka) belong to one checklist.
Planka does not support checklists, but only tasks on the card level - see plankanban/planka#74 (comment) .
Options to implement the import:
a) merge all trello checkitems together, i.e. transform all checkitems of one card to one planka task (checklist organization will be lost if there are multiple checklists)
b) add each checklist as a comment to planka with the corresponding markdown check formatting (then they won't be planka tasks, but the organization is not lost)
Of course this would only be a problem when multiple checklists are used in a Trello card, otherwise a 1:1 mapping of checkitem to task would not be problematic at all.
Seems to be broken for v1.10.1 (latest at the time of posting). I can buy you 5 or 10 coffees as a donation to fix it :-)
When the Trello "copy card" feature has been used to duplicate a card with its comments (and possibly checklists), these comments might not be imported into planka correctly - to be investigated.
Hello, I am not a javascript developer and have little experience with the toolchain.
How to run this tool? I am on Ubuntu 22.04
$ npm --version
8.5.1
$ npm run import-board -- --file=trello.json
> [email protected] import-board
> node src/index.js "--file=trello.json"
file:///home/olekhov/soft/trello2planka/src/utils/config.js:6
if (err || !config?.planka?.api || !config?.planka?.importUser || !config?.planka?.importPassword) {
^
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
Archived lists, cards, etc. should not be imported for now, since afaik planka does not have an archiving-concept.
Attachments like Links (to external sites, but also to trello cards) are not imported correctly (attachment name is null) and practically missing.
Hello,
i am using a planka (dockerized) and trello2planka on the same host. The board was created as well as the first card, hoewever it seems that it fails, while adding the cover picture to this first card (first attachment) upload. Error below, please let me know if I should provide anymore info? Thank you! kr
node: v20.11.0
os: debian buster
planka: 1.15.4 (edit)
npm run import-board -- --file=trello-export.json
...
authenticated POST to http://localhost:3000/api/boards/1169626018739127538/labels
status = 200
authenticated POST to http://localhost:3000/api/boards/1169626018739127538/labels
status = 200
authenticated POST to http://localhost:3000/api/boards/1169626018739127538/lists
status = 200
authenticated POST to http://localhost:3000/api/lists/1169626020987274492/cards
status = 200
fetching attachment from Trello API, path = https://api.trello.com/1/cards/5edcb47b8f1dc70c77ac128a/attachments/5edcb4b6555550654c584d4c/download/image.png
status = 200
authenticated POST with file upload to http://localhost:3000/api/cards/1169626021247321341/attachments
SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
at JSON.parse (<anonymous>)
at Response.json (file:///home/trelloimport/trello2planka/node_modules/node-fetch/src/body.js:149:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async authenticatedPostFileUpload (file:///home/trelloimport/trello2planka/src/planka/client.js:87:36)
at async createAttachment (file:///home/trelloimport/trello2planka/src/planka/client.js:60:61)
at async importAttachments (file:///home/trelloimport/trello2planka/src/planka/import.js:141:34)
at async importCards (file:///home/trelloimport/trello2planka/src/planka/import.js:95:9)
at async importLists (file:///home/trelloimport/trello2planka/src/planka/import.js:77:9)
at async importTrelloBoard (file:///home/trelloimport/trello2planka/src/planka/import.js:18:5)
at async main (file:///home/trelloimport/trello2planka/src/index.js:8:9)
Alternatively to only one file, input a directory containing multiple json files that should be imported into the same project.
When running an import, it might be useful to later on see, which planka item corresponds to which original Trello item.
Trying to import with attachments but it dies at this point:
fetching attachment from Trello API, path = https://api.trello.com/1/cards/{redacted}/attachments/{redacted}/download/
status = 404
authenticated POST with file upload to https://{redacted}/api/cards/{redacted}/attachments
Error: authenticated POST failed, status code = 422, code = E_UNPROCESSABLE_ENTITY, problems = undefined
at authenticatedPostFileUpload (file:///home/ubuntu/trello2planka/src/planka/client.js:89:15)
It seems that it could catch errors like that and just ignore those attachments and keep going. I find it odd that the initial line for the download has no filename after it, it seems in the log the other ones do have one and maybe that is part of the problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.