[caption id=âattachment_4695â align=âalignrightâ width=â300â] Attachment in description[/caption]
Nextcloudâs Kanban app Deck today delivered major new features with a new version, including attachment and checkbox support. The last release had well over 30.000 downloads so there are perhaps hundreds of thousands of users managing projects with Deck already and theyâll be glad to see this update come along.
Changes
The major changes in this release are the ability to attach files to cards as well as embed them in the description and support for checkboxes in the description. The new color picker and JSON export feature complete the list.
Besides these additions, some bugs were fixed and minor improvements made.
My compliments as well. I like how Deck is steadily working towards a more elaborate feature set, without rushing things, while keeping its simpleness! Thanks for this elegant tool!
Iâm especially happy with the (json) export feature as it kept me from entering all my data in Deck because I was afraid to get tech-locked in. With this out of the way I can go mental!
However one question (I tried to find it elsewhere but I was unable to find it):
What is the specific occ comand to export the data (how does it work)?
I realize it is run from the CLI (elegant and quick), but how exactly. Do I need to be at a certain path, what is the command to type etc. (did I miss a guide somewhere)?
@woosting regarding the guide, have a look at Using the OCC Command in Nextcloud admin docs.
Following that guide, on my Ubuntu install Iâve run the following to get a list of commands:
> sudo -u www-data php /var/www/nextcloud/occ list
<snip>
deck
deck:export Export a JSON dump of user data
<snip>
I can then show the help page for that command to get more information:
> sudo -u www-data php /var/www/nextcloud/occ help deck:export
Usage:
deck:export <user-id>
Arguments:
user-id User ID of the user
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--no-warnings Skip global warnings, show command output only
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Help:
Export a JSON dump of user data
You can redirect the JSON output of the command using the standard shell operators like â|â and â>â.
So if I wanted to export data for user âfabioâ to a JSON file in my OS, in my environment I would run: sudo -u www-data php /var/www/nextcloud/occ deck:export fabio > /path/i/want/fabio.deck.json
What to do with the JSON after that would be up to you. I donât currently see a way to import it, but Iâm sure thatâs high priority for next release. The GitHub issue for import/export looks to still be open. Updated in 2024: Unfortunately, the import feature still isnât there. Folks have put together a few unofficial attempts. Theyâre missing some of the integration features, but you may find something like this script useful in a pinch.