Get Tasks(POST) returning list of all tasks when filtered according to sorting (processVariable)


#1

Hi,

I am sending following payload for get tasks (POST)

{
“sorting”:[
{
“sortBy”:“processVariable”,
“sortOrder”:“asc”,
“parameters”:{
“variable”:“orderId”,
“type”:“String”
}
}
]
}
This is returning list of all tasks. Is it not supposed to return only tasks with “orderId” process variabe in ascending order?

Thanks,
Sindhu.


#2

@sindhu_veladi, the variable “orderId” in sorting is not filter variable,its just sorts the result based on the variable with given sort order.

If you want filtered by variables, then you have send it in variables part. Same applicable for process variables.

image