How to define custom filter in tasklist?

Hello, I have defined a variable “richiedente”


variable confirmed by setting the initiator

I would know if it is possible to define a custom filter to see only the task


immagine

with

${richiedente}= $ { currentUser ()}.

Thank you in advance

Oronzo

Can you help me with this need for implementation in the tasklist? It’s very important
Thank you
O.

Good Morning @Niall could you help me to define a custom filter as I have described in the post ?

Hi @oronzo_lezzi,

Filters for tasks where the process contains certain variables can be created with the REST api: https://docs.camunda.org/manual/7.12/reference/rest/filter/post-create/.

An example payload could be

{
    "resourceType": "Task",
    "name": "Examinername is Oronzi",
    "query": {
        "processVariables": [
            {
                "name": "FIRST_EXAMINER_NAME",
                "operator": "eq",
                "value": "Oronzi"
            }
        ]
    }
}

Hope this helps, Ingo

Thanks for your answer, how can I use this API to build a filter in the tasklist to display only the tasks where $ {richiedente} = $ {CurrentUser ()}?

It’s possible to do it ?
I need to create a dynamic filter