Context filter using | (or) functions as or-but-not-and
Describe the bug
I have some cards with multiple contexts (@a @b). If I filter for one or the other to set the color in the board settings, it works: context=a. If I filter for both contexts, it works, changing the color of those marked @a and @b: context=a&context=b. However, if I set the filter to context=a|context=b, the color of a card marked both @a and @b does not change. This seems counterintuitive.
To Reproduce Steps to reproduce the behavior:
- Create a card with contexts
@a @b. - Go to Board Settings > Card Settings
- Create a Card Color Filter with the filter set to
context=a|context=band Color set to green. - Save and exit settings.
- See that the card color hasn't changed.
- Go to Board Settings > Card Settings, edit the rule to read
context=a&context=b; save; exit settings. - See that the card color has changed.
Expected behavior
A filter of context=a|context=b should trigger the color change if the context is a, b, or both a and b.
Desktop (please complete the following information):
- OS: MacOS Catalina
- Browser: using the imdone app, Version 1.12.0 (1.12.0)
Additional context Add any other context about the problem here.
DoD
- [ ] Issue is understood
- [ ] Fix is implemented and tested
- [ ] Fix is deployed in the current release
The query should be context=a or context=b. The old RQL query style is deprecated and will be removed in a future release.
Using or works. Pretty sure I found the & / | syntax in the documentation.
Can we close this issue?
Yes. Sorry -- should I do that?
Unless maybe the docs need editing to reflect this?
I'll remove the docs that are marked as deprecated this evening and close this out. Thanks for the help!