# Task list

## Visibility configuration of the request on the task list

For requests to be visible on the task list, permissions for the user role must be configured: [Configuration of permissions for the user role (Assignment of a group in the User Task)](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/eximee-dashboard/konfiguracja/uprawnienia).

## Configuration of data displayed in the tile

It is possible to configure the data displayed in the central part of the tile on the task list in the Eximee Dashboard, located for example at:

```
ROUTER_HOST:8083/router-ui/#/tasks
```

To configure what data we want to display in the central part of the tile, in the BPMN process go to:

User task (**UserTask**) → section \***Inputs**.

A new parameter named **TASK\_DASHBOARD** must be added and the variable assignment type (Variable Assignment Type) set to **Map**.

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-2c9ae1defe76e0cda860735f27a73fe38050eb1c%2F1-Konfiguracja-zadania-uzytkownika-UserTask.png?alt=media" alt=""><figcaption><p>Figure 1. Configuration of the "UserTask" user task</p></figcaption></figure>

After clicking **+** we can add a label-value configuration that will be displayed on the task list in the Eximee Dashboard.

Keep in mind that values in the field **Key** must be unique for a given user task (*UserTask*).

In the field **Value** you can place literals or task variables using;

```
${NAZWA_ZMIENNEJ}
```

To retrieve global variables (this can be done using [*scriptTask*](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/proces-biznesowy/zadania-automatyczne/zadanie-skryptowe-bpms-scripttask)) of the process, use the method **getVariable**:

```js
${execution.getVariable("variable_name e.g. start.documentId")}
```

Example of the configured list appearance:

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2Fgit-blob-c6435e0f576236d2dd49438386d35ccdcb9f6510%2F2-Lista-zadan.png?alt=media" alt=""><figcaption><p>Figure 2. Task list</p></figcaption></figure>

We can also specify the order of the displayed variables by providing, at the beginning of the key, a number in square brackets on the basis of which the variables will be sorted, e.g. "\[1]Label". Such a number will not be displayed, and variables without a number will be placed at the very end. For example, the map:

```js
execution.setVariable("TASK_DASHBOARD", [
 "[3]A": "A",
 "B": "B",
 "[1]C": "C"
]);
```

will be displayed as key-value pairs in the order of the labels C, A, B.
