snappymail icon indicating copy to clipboard operation
snappymail copied to clipboard

Create Nextcloud Deck cards from mail

Open Bolli84 opened this issue 1 year ago • 1 comments

It would be great to create Nextcloud deck cards drictly from snappymail.

The following procedure would be good:

Select a mail

  1. Press the button in the actions: "Create deck card"
  2. Dialog for Board and Line opens
  3. Board and line is selected
  4. Open Deck Dialog? No; all ends YES: Deck dialog opens to adjust the parameters
  5. Per default, the Card has the Mail-Body as text and Mail-Name as Title

It would be a good feature to assign Tasks directly.

API: https://deck.readthedocs.io/en/latest/API/

Bolli84 avatar Jan 12 '24 18:01 Bolli84

It will work like this:

  1. Get the boards GET /nextcloud/apps/deck/boards
[
	{
		"title": "Personal",
		"owner": {
			"primaryKey": "mhxsolut",
			"uid": "mhxsolut",
			"displayname": "mhxsolut",
			"type": 0
		},
		"color": "0087C5",
		"archived": false,
		"labels": [],
		"acl": [],
		"permissions": {
			"PERMISSION_READ": true,
			"PERMISSION_EDIT": true,
			"PERMISSION_MANAGE": true,
			"PERMISSION_SHARE": true
		},
		"users": [],
		"shared": 0,
		"stacks": [],
		"deletedAt": 0,
		"lastModified": 1710868220,
		"settings": {
			"notify-due": "assigned",
			"calendar": true
		},
		"id": 1,
		"ETag": "8d8cd38277cae0a2703c7f4a08895433"
	}
]
  1. Get the stacks of the selected board GET /nextcloud/apps/deck/stacks/{board.id}
[
	{
		"title": "To do",
		"boardId": 1,
		"deletedAt": 0,
		"lastModified": 1710868475,
		"cards": [],
		"order": 1,
		"id": 1,
		"ETag": "d5a72d0df3787ca5a7bdfb91a799a826"
	}
]
  1. Save the card POST /nextcloud/apps/deck/cards
{
	"boardId": 1,
	"description": "card description",
	"stackId": 1,
	"title": "card title"
}

the-djmaze avatar Mar 19 '24 17:03 the-djmaze