I am trying to query ServicedeskPlus using the V3 API to get a list of all the open incidents in the service desk. I use the following query (private information replaced with ZZZ with input data encoded:
{
"list_info": {
"row_count": 20,
"start_index": 1,
"sort_field": "subject",
"sort_order": "asc",
"get_total_count": true,
"search_fields": {
"status.name": "Open",
}}}
My problem is that the result includes incidents that are already closed or On-Hold. I'm fine with the incidents On-Hold but i have an issue with those that are closed. I have noticed that the closed tickets in the result have either breached SLA or have been closed by FCR.
I've attached the result from the API query, it returns 10 results but i've deleted 9 in the attached file. The result in the file is a closed incident.
Is there something wrong with my API query or the API itself? Or could it be as a result of the information inside the incident itself?