Infos:
- Used Zammad version: 3.4.x
- Used Zammad installation source: package
- Operating system: CentOS
- Browser + version: All
Expected behavior:
Get a JSON with only relevant Data from a view like:
tickets id, tickets number, title, assigned user, state, sort_by, prio, etc…
Is there another way to only get ticketid,ticketnumber,title,prio,assign user from a view ?
Actual behavior:
We need to get all Tickets from a Specified View
if we call:
curl -H “Authorization: Token token=xyz” “https://my.zammad.com/api/v1/ticket_overviews?view=prio_tickets” | json_pp
We get a huge JSON with to much information like:
{
“index” : {
“count” : 36,
“tickets” : [ … more nested json …
],
“overview” : { … more nested json …
}
},
“assets” : {
“Role” : { … more nested json …
},
“Ticket” : { … more nested json …
},
“Overview” : { … more nested json …
},
“Organization” : { … more nested json …
},
“TicketState” : { … more nested json …
},
“Group” : { … more nested json …
},
“User” : { … more nested json …
}
}
}
The Problem is that this is Data is too much, speciality the “User” part is way to big as all Users from the Organisation are listet here, and I don’t think that this is necessary in this API call.
We have an json call around 1MB, sometimes even more… this is a problem in low Bandwidth areas.
Steps to reproduce the behavior:
Make a curl in a overview with some ticket in there like this:
(where prio_tickets is sone view, you also can use all_unassigned or something else)
curl -H “Authorization: Token token=xyz” “https://my.zammad.com/api/v1/ticket_overviews?view=prio_tickets” | json_pp
Questions
Is there another way to only get ticketid,ticketnumber,title,prio,assign user from a view ?