cancel
Showing results for 
Search instead for 
Did you mean: 

REST API: list tasks return wrong result

partizano
Champ in-the-making
Champ in-the-making
Hi,

I try to get list of tasks using REST API, my request is "http://localhost:8080/activiti-rest/service/tasks?assignee={kermit}", it returns
{
  "data": [
]
,
  "total": 0,
  "start": 0,
  "sort": "id",
  "order": "asc",
  "size": 0
}

In activiti-probe I see that in table ACT_HI_TASKINST there is several not completed tasks, in which assignee=kermit (I also can see this tasks in activiti-explorer). Can your help me? What can I do to retrieve task lists?


Thanks, Alexander
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
I try to get list of tasks using REST API, my request is "http://localhost:8080/activiti-rest/service/tasks?assignee={kermit}", it returns

try "http://localhost:8080/activiti-rest/service/tasks?assignee=kermit" without kermit in the curly braces…

partizano
Champ in-the-making
Champ in-the-making
Thanks for very fast reply!
It works!

jcanon
Champ in-the-making
Champ in-the-making
I have also the same problem and I always receive 0 task and I use the good Rest API (http://localhost:8080/activiti-rest/service/tasks?assignee=kermit)

frederikherema1
Star Contributor
Star Contributor
We have a lot of unit-tests for the REST-api. Querying tasks based on assignee is one of the tested features. How did you actually verify if the task you're looking for is assigned to kermit? Is the REST-api using the right data-source?