Content
View differences
Updated by Parimal Satyal over 3 years ago
**As** a user
**I want** more fine-gained control want to** show results only when filtering via attributes/fields that are all selected values in a multi-select filter match
**so that** I can clearly use AND, OR and NOT operators (without ambiguity), and also search based on whether a field is empty or not
### Context
Today, you can get an AND filter for custom fields of type "list" that can accept multiple values. However, the existing set of operators _(is, is not, all, none)_ doesn't allow users a lot of control, and introduces ambiguity. Does "is" mean that all of the this selected values must be present, or one one of them? And how do I select fields that have a value (any value), so I can remove only those work packages where the field is blank? Or view only those work packages with empty values? filter
The current list of operators does not make this very easy. This work package proposes distinguishing between the list of available operators for single- and multi-select attributes. **Context**
### **Acceptance criteria**
* **For multiple choice,** add the following separate set of options for more clarity:
* "**is (OR)**", only one of the input values needs to be present
* "**is (AND)**", all of the input values must be present
* "**is not"**, cannot have any of the input values (negative OR)
* "**is empty**", field must contain no value
* "**is not empty**", field can contain any value, and any number of values, but cannot be empty
* **For single-choice,** make the following changes:
* maintaining as is:
* **is**
* **is not**
* removing: **all**
* renaming: "none" to "**is empty**"
* adding: "**is not empty**" (field can contain any value but cannot be empty)
> ### Original context
>
> Custom field of type "List" with "Allow multi-select" checked, and "Used as a filter" checked. Then on work packages list, add a filter for this custom field.
**Acceptance criteria**
* Add a "is all of" operator
* Maybe rename "is" operator into "is one of"
**I want** more fine-gained control
**so that** I can clearly use AND, OR and NOT operators (without ambiguity), and also search based on whether a field is empty or not
### Context
Today, you can
The current list of operators does not make this very easy. This work package proposes distinguishing between the list of available operators for single- and multi-select attributes.
### **Acceptance criteria**
* **For multiple choice,** add the following separate set of options for more clarity:
* "**is (OR)**", only one of the input values needs to be present
* "**is (AND)**", all of the input values must be present
* "**is not"**, cannot have any of the input values (negative OR)
* "**is empty**", field must contain no value
* "**is not empty**", field can contain any value, and any number of values, but cannot be empty
* **For single-choice,** make the following changes:
* maintaining as is:
* **is**
* **is not**
* removing: **all**
* renaming: "none" to "**is empty**"
* adding: "**is not empty**" (field can contain any value but cannot be empty)
> ### Original context
>
> Custom field of type "List" with "Allow multi-select" checked, and "Used as a filter" checked. Then on work packages list, add a filter for this custom field.
**Acceptance criteria**
* Add a "is all of" operator
* Maybe rename "is" operator into "is one of"