taskDefinitionKeyIn not working in Filter create

Dear Community,

I’ve got a strange behaviour. I am using Camunda 7.19 and I want to create a filter via REST API using taskDefinitionKeyIn.

So I Post to /filter/create

{
    "resourceType": "Task",
    "name": "Filter name",
    "owner": null,
    "query": {
        "taskDefinitionKeyIn": "ActivityA,ActivityB"
    }
}

Then, I get the following error:

{
    "type": "InvalidRequestException",
    "message": "",
    "code": null
}

Unfortunately, there is no more stacktrace anywhere. If I use other query parameters like assigned or even taskDefinitionKey it works.

Am I doing anything wrong?

Any hints are appreciated.

Hi @philipp.hehnle,

Could you try below payload

{
    "resourceType": "Task",
    "name": "Filter name",
    "owner": null,
    "query": {
        "taskDefinitionKeyIn": ["ActivityA", "ActivityB"]
    }
}