GothenburgBitFactory / GothenburgBitFactory/taskwarrior
Some filters don't obey task contexts
- Dominant language
- C++
- Stars
- 6.1k
- Forks
- 423
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 11
Description
#### To report a bug...
###### What command(s) did you run?

- Set a context with `task context work`
- Listed tasks with `task list` (demonstrating that there are none)
- Ran `task list urgency \> 10` to list all tasks with an urgency greater than 10
###### What did you expect to happen?
- The search should output no tasks, as there are none in the current context with an urgency greater than 10
###### What actually happened?
- The list had high priority tasks from everywhere, not just from my context
###### Paste the output of the ```task diag``` command.
```
task 2.6.2
Platform: Linux
Compiler
Version: 11.3.0
Caps: +stdc +stdc_hosted +LP64 +c8 +i32 +l64 +vp64 +time_t64
Compliance: C++17
Build Features
CMake: 3.22.3
libuuid: libuuid + uuid_unparse_lower
libgnutls: 3.7.3
Build type: Release
Configuration
File: /home/minion/.taskrc (found), 1728 bytes, mode 100644
Data: /home/minion/.task (found), dir, mode 40755
Locking: Enabled
GC: Enabled
$EDITOR: /nix/store/4lgwsnvrpziv3bkzwc6nzz33kjnkvxj0-neovim-0.7.0/bin/nvim
Server:
CA: -
Certificate: -
Key: -
Trust: strict
Ciphers: NORMAL
Creds:
Hooks
System: Enabled
Location: /home/minion/.task/hooks
(-none-)
Tests
Terminal: 325x74
Dups: Scanned 14 tasks for duplicate UUIDs:
No duplicates found
Broken ref: Scanned 14 tasks for broken references:
No broken references found
```
###### What's my use-case?
- I'm trying to make my shell prompt say how many tasks I have in my current context that are urgent, therefore I can't just add the context filter to my urgency filter, it needs to work for any context I'm in
- Interestingly, commands such as `task +OVERDUE list` *do* correctly show the tasks
Contributor guide
Assessment
This issue has not been assessed yet.