wekan: Import from trello is broken
Issue
Using docker-compose from 2 apr 2023, I tried to import a trello board. But seems to fail.
Server Setup Information
- docker compose from github
WeKan ® info - 6.81.0
Meteor - 2.11.0
Node 14.21.3
Mongo 6.0.5
Problem description
Reproduction Steps
- install from docker compose
- go to trello board with attachments (some random images)
- import from trello
Logs
Exception while invoking method 'importBoard' ReferenceError: Attachment is not defined
at models/trelloCreator.js:452:13
at Array.forEach (<anonymous>)
at models/trelloCreator.js:429:21
at Array.forEach (<anonymous>)
at TrelloCreator.createCards (models/trelloCreator.js:291:17)
at TrelloCreator.create (models/trelloCreator.js:763:10)
at MethodInvocation.importBoard (models/import.js:35:20)
at packages/check/match.js:118:15
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1329:12)
at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:116:43)
at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1899:18)
at getCurrentMethodInvocationResult (packages/ddp-server/livedata_server.js:772:38)
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1329:12)
at packages/ddp-server/livedata_server.js:791:46
at new Promise (<anonymous>)
at Session.method (packages/ddp-server/livedata_server.js:739:23)
at packages/ddp-server/livedata_server.js:603:43
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 39 (21 by maintainers)
Commits related to this issue
- Import attachments .zip file. In Progress. Thanks to xet7 ! Related #4877 — committed to wekan/wekan by xet7 3 years ago
Because 20th of May is coming fast and we need to have it working, I wrote a little website which alters the JSON export from Trello in a way to get it imported into Wekan without error so far. There might be more errors from missing color labels, but one could fix it manually in an editor by find and replace (like red_dark to red). But red_dark and green_dark already handled by the script. Everything is done locally in your browser, no data is stored anywhere: you are free to look at the source of the little website:
https://metaviewsoft.de/Trello2Wekan.html
@S733
Yes. I’m currently adding to WeKan Trello import page button to upload JSON and attachments, and other related code. In Progress.
@S733
Thanks for info ! I try to fix before Apr 8.
AWESOME, thank you so much! We ran into trouble as we had some boards with over 50 Million chars in the json so I converted your approach to a nodesJS script which won’t run OOM while converting. The import went great!
(had to use gist as the code went out of formation) https://gist.github.com/sossnat/a866a8dd633d683769791f821570a68f
I presume, that for all Import and Export options, it would be most practical to have those internally at WeKan webpages.
@n9yty
Yes, there is funding, and developing fixes for importing boards with attachments from Trello is In Progress.
I thought I saw that funding was obtained, has this made any progress? Since I can’t see a direct way to even import without attachments this is kind of a mess right now for moving from Trello.
@AR1ES
Import from Trello code is here https://github.com/wekan/wekan/tree/master/models
Trello made new requirement for API key when downloading attachments, example to download with Python here https://github.com/wekan/wekan/tree/master/trello
So that kind of download with Javascript should be added to WeKan to wekan/models/
Trello API key input field can be added to https://github.com/wekan/wekan/tree/master/client/components/import
WeKan can be built and send PR this way https://github.com/wekan/wekan/wiki/Emoji
Alternatively, someone can fund import from Trello feature with 1000 euro at https://wekan.team/commercial-support/
@zjw1909966713
That kind of depends, do I spend time answering to questions about when something is ready and related guesstimations, or spend time actually coding. I get about 100 new messages a day.
@oninoni
Oh no. Please, no:
I prefer coding properly working import, thanks!
Hi @xet7
Starting Apr 8, Trello free Workspaces will be limited to 10 collaborators. We are trying to import our Trello Boards to Wekan and getting the same error.
With the latest version 7.36 the problem persists.