GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Filter expressions with OR in taskrc not working

Open
#2,190 4 comments 0 reactions 0 assignees View on GitHub
type:bug
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

This is my first time trying to make some custom reports on macOS Mojave (10.14.5) with task.
When I manually run a filter with an OR it will work fine. When I move this expression to the report.testreport.filter in the rc file it does not work.

Report in ~/.taskrc
```
report.testreport.description = Test Report
report.testreport.labels = Proj,ID,Description
report.testreport.columns = project,id,description
report.testreport.filter = +test ( status:pending or status:waiting )
report.testreport.sort = project+/,entry+
```

```
> task --version
2.5.1

> task "+test ( status:pending or status:waiting )" all

ID St UUID A Age Done D P Project Tags R Wait Sch Due Until Description
-- -- -------- - ---- ---- - - ------- ---- - ---- --- --- ----- -----------
8 W d12dd9a9 9min [1] 23h test2
7 P e693a788 9min [1] test1

2 tasks

> task testreport
No matches.
```

If I comment out report.testreport.filter in the rc file and add the filter to the command manually it works as expected, see below.

```
> task "+test ( status:pending or status:waiting )" testreport

Proj ID Description
---- -- -----------
7 test1
8 test2

2 tasks
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.