Not able to filter tasks based upon task's variable value

I have created a filter and passed taskvariables as below in the “query” field.
“taskVariables”: [{“name”:“name”,
“operator”:“eq”,“value”:“John”}]

Though task contain a formField with name “name”, the above filter returns no data.

Hi @Asutosh_Dash,

the docs Get Tasks (POST) | docs.camunda.org say

taskVariables: A JSON array to only include tasks that have variables with certain values.

If you try

processVariables: A JSON array to only include tasks that belong to a process instance with variables with certain values.

you may see the expected process instances.

Hope this helps, Ingo