# Feature OP-16768 - Filters - Allow sophisticate filters combinations

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-16768

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** any User with rights to create boards, views...  
**I want to** be able to create views with sophisticate filters (any combination of any number of the already-existing filters)  
**so that** I may create even more versatile views

### **More details / Use case**

Currently, the filtering feature is limited to one instance of each filter type linked by a _AND_ logical linker (eg. Filter = `type=TASK _AND_ status=TODO _AND_ Assignee=(empty)`). The filters already support value lists with _OR_ logic (eg. `type=(TASK OR STORY)`). I would like to be able to create more sophisticate filters with more filters combinations and with several instances of each filter type and _OR_ logical linkers (eg. Filter = `type=TASK _AND_ ( (status=TODO _AND_ Assignee=empty) _OR_ (status=DOING _AND_ End-date=past) )`.

### **Acceptance criteria**

*   I shall be able to create either _AND_ and _OR_ logical link between logical groups (= a group of filter linked only by logicals _ANDs_ (nb: the current filter feature is a single logical group))
    
*   I shall be able to use several times any filter type (eg. status, assignee etc.) in different logical groups
    
*   I _would like_ to be able to create hierarchical conditions (ie. `A and (B or C)` instead of `(A and B) or (A and C)`. If this is too complex/heavy to implement, a single sub-level of logical groups may be sufficient (`(sub-group) or (sub-group) or (sub-group)...`)
    

### **Technical notes**

*   The current feature is a single logical group linked by _AND_ logical linkers. A simple and user-friendly way to do this IMO would be to add a `Add filter group` button to instantiate new groups :
    
    *   by default, the filter view would be similar to existing, just with this new button
        
    *   upon creating a new filter group, a new sub-division is created with the same layout as the existing
        

Example for single sub-level logical groups :&nbsp;

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/358434/content">

Example for multiple sub-level logical groups (add `+ Add filter group` inside groups):

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/358443/content">

### **Permissions and visibility considerations**

*   Anyone with modification right for views
    

### **Out of scope**

*   NA
