API-REST list of task without users assigned

As I can make a query with REST-API in which to get the list of tasks without users assigned?

Bonita 6.2

This a way to get a list of unassigned tasks with one rest call and some custom filtering on your part.

Make this REST call…
METHOD: GET
URL: http://localhost:8080/bonita/API/bpm/humanTask?p=0&f=state%3Dready
HEADER 1: Content-Type application/json
HEADER 2: Cookie

You will get a JSON array returned back with all your current open and ready tasks. You then need to do custom filtering in your code by only returning the JSON objects that match your no user assigned requirement.

If a case is not assigned, the fields in the JSON results “assigned_id” and “assigned_date” will be empty strings (i.e. “”).
If they have been assigned they will have id and date values.

EXAMPLE RESULTS:
[
{
“displayDescription”: “This is a sample already assigned to a user case.”,
“executedBySubstitute”: “0”,
“processId”: “6542310678011325631”,
“state”: “ready”,
“rootContainerId”: “9049”,
“type”: “USER_TASK”,
“assigned_id”: “603”,
“assigned_date”: “2014-08-20 15:15:06.889”,
“id”: “180862”,
“executedBy”: “0”,
“caseId”: “9049”,
“priority”: “normal”,
“actorId”: “506”,
“description”: “This is a sample process.”,
“name”: “This is a sample process”,
“reached_state_date”: “2014-08-04 11:30:47.831”,
“displayName”: “This is a sample process”,
“dueDate”: “2014-08-04 12:30:47.533”,
“last_update_date”: “2014-08-04 11:30:47.831”
},
{
“displayDescription”: “This is a sample no user assigned case.”,
“executedBySubstitute”: “0”,
“processId”: “6542310678011325631”,
“state”: “ready”,
“rootContainerId”: “9059”,
“type”: “USER_TASK”,
“assigned_id”: “”,
“assigned_date”: “”,
“id”: “180979”,
“executedBy”: “0”,
“caseId”: “9059”,
“priority”: “normal”,
“actorId”: “506”,
“description”: “This is a sample process.”,
“name”: “This is a sample process”,
“reached_state_date”: “2014-08-15 15:24:29.537”,
“displayName”: “This is a sample process”,
“dueDate”: “2014-08-15 16:24:29.194”,
“last_update_date”: “2014-08-15 15:24:29.537”
}
]

That’s the best way I know how to solve your question.