obsidian-kanban
obsidian-kanban copied to clipboard
[Bug]: Archiving does not honor cancelled and in progress task statuses
Describe the bug
I have some tasks in my kanban list like:
- [x] completed task
- [ ] incomplete task
- [-] cancelled task
- [/] in progress task
Right now,
tl;dr
When I "archive completed tasks" the plugin:
- moves cancelled and in progress tasks to the archive section
- changes their status to completed (
[x]
)
Expected Behavior
When I "archive completed tasks" the plugin:
- moves cancelled tasks to the archive section
- Arguably this should be a setting
- preserve their status as cancelled (
[-]
)
- leaves in progress tasks in their place and do not change them
I have these task statuses defined using the Obsidian Tasks plugin, it may be worth trying to integrate with that plugin's config for task statuses, if installed.
Steps to reproduce
Open the following file in an obsidian vault with kanban enabled
---
kanban-plugin: basic
---
## TODO
- [x] completed task
- [ ] incomplete task
- [-] cancelled task
- [/] in progress task
%% kanban:settings
```
{"kanban-plugin":"basic","show-checkboxes":true,"hide-card-count":false,"lane-width":320,"hide-tags-in-title":true,"date-colors":[{"distance":1,"unit":"days","direction":"after","backgroundColor":"rgba(255, 0, 0, 1)","isBefore":true}],"archive-with-date":true,"append-archive-date":true}
```
%%
Press the "archive completed tasks button"
Observe the new file:
---
kanban-plugin: basic
---
## TODO
- [ ] incomplete task
***
## Archive
- [x] completed task 2023-12-20 02:40:27 pm
- [x] cancelled task 2023-12-20 02:40:27 pm
- [x] in progress task 2023-12-20 02:40:27 pm
%% kanban:settings
```
{"kanban-plugin":"basic","show-checkboxes":true,"hide-card-count":false,"lane-width":320,"hide-tags-in-title":true,"date-colors":[{"distance":1,"unit":"days","direction":"after","backgroundColor":"rgba(255, 0, 0, 1)","isBefore":true}],"archive-with-date":true,"append-archive-date":true}
```
%%
Expected file contents:
---
kanban-plugin: basic
---
## TODO
- [ ] incomplete task
- [/] in progress task 2023-12-20 02:40:27 pm
***
## Archive
- [x] completed task 2023-12-20 02:40:27 pm
- [-] cancelled task 2023-12-20 02:40:27 pm
%% kanban:settings
```
{"kanban-plugin":"basic","show-checkboxes":true,"hide-card-count":false,"lane-width":320,"hide-tags-in-title":true,"date-colors":[{"distance":1,"unit":"days","direction":"after","backgroundColor":"rgba(255, 0, 0, 1)","isBefore":true}],"archive-with-date":true,"append-archive-date":true}
```
%%
Relevant errors (if available)
No response
Operating system
macOS