ObjectNode totalAssignedJSON = new ObjectMapper().createObjectNode();
totalAssignedJSON.put("total", ts.createTaskQuery().taskAssignee(user).count());
summaryResponseJSON.put("assigned", totalAssignedJSON);
ObjectNode totalUnassignedJSON = new ObjectMapper().createObjectNode();
totalUnassignedJSON.put("total", ts.createTaskQuery().taskCandidateUser(user).count());
totalUnassignedJSON.put("groups", groupsJSON);
summaryResponseJSON.put("unassigned", totalUnassignedJSON);
return summaryResponseJSON;
}