mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 11:21:03 +03:00
Mass import of cards from text lines #262
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @snan on GitHub (Dec 27, 2022).
Hi y'all ♥
Is it possible to move a whole bunch of cards from one board to another board, maybe by first moving the entire list over? I found that you can move cards individually from the card's context menu, but what if you have dozens of cards?
And, is it possible to import cards from text lines or other formats (other than Trello)? I tried pasting but it created a card with newlines in the title 🤷🏻♀️
@meltyshev commented on GitHub (Dec 29, 2022):
I agree with you, these missing features would be useful.
@snan commented on GitHub (Dec 29, 2022):
I was thinking of something—maybe it is possible to do them by making SQL queries directly?
@meltyshev commented on GitHub (Dec 29, 2022):
I've written a little script to copy all the cards from the list to the list. Warning: I haven't tested it well!
To run it, you have to enter the sails console:
cd serverandPORT=1338 npx dotenv sails console.@zezretro commented on GitHub (Jul 3, 2023):
Sorry for extra questions. How do you access the sails console? I am running in docker and I can log into the containers console. thank you
@meltyshev commented on GitHub (Jul 4, 2023):
Hi! Please try this:
docker exec -t planka-planka-1 /bin/bash -c "export PORT=1338 && npx dotenv sails console"You might need to change the name of the
planka-planka-1container to your name.@zezretro commented on GitHub (Jul 4, 2023):
Got into the sails console, thank you!
@zezretro commented on GitHub (Jul 16, 2023):
Hiyas
I took the above sails code and asked chatGPT to update it so that it now reads all the lists in the source board and moves all of them to the target board. If the list doesnt exist it creates it.
When using ChatGPT I found it easier to ask it to update the code in stages and tested it at each step. First I asked it to create a list if it doesnt exist. Then I asked it to accept an input string array of source lists. Then I asked it again to read all lists from the input board.
The same disclaimer as above: this worked for me but has not been extensively tested. List position isn't handled well, you might need to manually rearrange
@maxsmooth commented on GitHub (Nov 14, 2024):
I tried this script but it gives me the following error:
@zezretro commented on GitHub (Nov 14, 2024):
Were you able to get the original script to run? the one at the top of this thread which was posted by the app author. maybe that gives insight as to if your error is with this updated script or something else
@maxsmooth commented on GitHub (Nov 14, 2024):
the one at the top of this thread which was posted by the app author.
@zezretro commented on GitHub (Nov 14, 2024):
I tried the script now and I also got the same error
I suspect the underlying data structure has changed since this script was written
@meltyshev could you provide any hints how to update the script?
@meltyshev commented on GitHub (Nov 14, 2024):
Hi! Yes, the structure has already been changed. Please try the following version:
@maxsmooth commented on GitHub (Nov 14, 2024):
No, there's still problems (user, from_board_id and to_board_id are correct, the script only creates first list and then stop, cards in the first list are not created):
@meltyshev commented on GitHub (Nov 14, 2024):
Oops, there was a typo when destructuring
toProject, should be:instead of,:@maxsmooth commented on GitHub (Nov 14, 2024):
Ok, thank you!
@madduck commented on GitHub (Jun 5, 2025):
I started work on plankacli precisely for such operations.