Giter VIP home page Giter VIP logo

trello2planka's People

Contributors

christophenne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

olekhov

trello2planka's Issues

Code references Planka end points which dont exist

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

Mapping of Trello Checklists to Planka Tasks

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.

Broken for version v1.10.1

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 :-)

Copied comments not imported

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.

Can't run the tool

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)

Skip archived items

Archived lists, cards, etc. should not be imported for now, since afaik planka does not have an archiving-concept.

Unexpected token 'I', "Internal S"... is not valid JSON

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)

Import multiple boards

Alternatively to only one file, input a directory containing multiple json files that should be imported into the same project.

Should continue after an import problem ?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.