> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/eximee-dashboard/filtrowanie-listy-zadan-i-spraw.md).

# Filtering the task list and case list

In Eximee Dashboard, data can be filtered in the task list and the case list.

{% hint style="info" %}
This page covers the task list and case list displayed as tiles. Searching and filtering the list of all cases is described on the page [List of all cases](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/eximee-dashboard/lista-wszystkich-spraw.md).
{% endhint %}

## Basic filtering

The filtering mechanism for the task list and case list lets you search for tasks using the process variable **SEARCH\_STRING**. You can pass multiple fields to the variable as a single string (for example, separated by commas), which lets you search by part of a value. The filter uses the operator `LIKE` known from SQL.

The value of the variable **SEARCH\_STRING** should contain all the data that users need to be able to search for.

Example script that sets the value of the variable **SEARCH\_STRING**:

```js
def submittedLeads = execution.getVariable("submittedLeads")
def rejectedLeads = execution.getVariable("rejectedLeads")
def businessKey = execution.getVariable("start.formInstanceNumber")
def lead = execution.getVariable("Lead")
def cif = execution.getVariable("CIF_Klienta")
def time = execution.getVariable("Czas_lokalny")
def modSkp = execution.getVariable("SKP_Wypełniającego")
def skp = execution.getVariable("SKP_doradcy_portfelowego")
def branchSkp = execution.getVariable("Oddział_zgłaszającego")

def dashboardParams = [
	"Application number"				: businessKey,
    "Selected leads"             : lead,
    "Client CIF"               : cif,
    "Application submission time"     : time,
    "Submitter SKP"        : modSkp,
    "Portfolio advisor SKP"  : skp,
    "Branch SKP"              : branchSkp,
	"Submitted leads" 			: submittedLeads,
	"Rejected leads"			: rejectedLeads
]

searchString = businessKey + "," + 
               cif + "," + 
               time + "," + 
               modSkp + "," + 
               kp + "," + 
               branchSkp

execution.setVariable("PROCESS_DASHBOARD_DESCRIPTION", "Proces Leadowania")
execution.setVariable("PROCESS_DASHBOARD", dashboardParams)
execution.setVariable("SEARCH_STRING", searchString)
```

In the example above, you can search by, among other things:

* application number,
* client CIF,
* submission time,
* SKP identifiers.

The basic search filter is in the upper-left corner (the field with the "magnifying glass"). Example of filtering the case list by branch SKP:

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-dd559e211193af27aac25f23adbfc8b7684cb439%2Ffiltrowanie-lista-spraw.png?alt=media" alt=""><figcaption><p>Figure 1. Filtering the case list</p></figcaption></figure>

For the filter to work correctly, the variable **SEARCH\_STRING** add to the process variables.

Filters are saved in the URL, making it possible to share a link with preset filters with other users and change the filters directly in the URL.

## Advanced filtering

The advanced filtering feature is marked with the following symbol: ![Ikona filtra](https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-12df5692274a7e8891b5171bbcb3e3e66b9818be%2Ffiltr_zaawansowany-ikona.png?alt=media)

### Task list

Available filter parameters:

* **Case status**
  * Filter by the businessStatus variable.
  * Multi-select field.
  * The list of available values is controlled by the variable **FILTER\_TASK\_STATUSES**.
* **Task assignee**

  Available options:

  * all tasks,
  * my tasks only,
  * unassigned tasks only,
  * tasks assigned to selected users (search requires at least 3 characters; multiple users can be selected).
* **Task creation date**
  * Specify a date range (from–to).
* **Case type**
  * Filter by the variable **processDefinitionKey**.
  * Multi-select field.
  * The list of values is controlled by the variable **FILTER\_PROCESS\_TYPES**.
* **Case ID**
  * Filter by the businessKey variable.
  * Search uses the `LIKE`.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-89843e6d98175b1613548fe5471425215fa6a108%2F2-filtr-zaawansowany-lista-zadan.png?alt=media" alt=""><figcaption><p>Figure 2. Advanced task list filter</p></figcaption></figure>

### Case list

Available filter parameters:

* **Case status**
  * Filter by the variable **businessStatus**.
  * Multi-select field.
  * The list of values is controlled by the variable **FILTER\_PROCESS\_STATUSES**.
* **Case type**
  * Filter by the variable **processDefinitionKey**.
  * Multi-select field.
  * The list of values is controlled by the variable **FILTER\_PROCESS\_TYPES**.
* **Case ID**
  * Filter by case number (the process instance's business key).
  * Search uses the `LIKE`.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-9a7f7f5c84b8743f85f150047129bad7fc646983%2F2-filtr-zaawansowany-lista-spraw.png?alt=media" alt=""><figcaption><p>Figure 3. Advanced case list filter</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/eximee-dashboard/filtrowanie-listy-zadan-i-spraw.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
