Hi all
I try to fetch a list of all open or new tickets from one zammad group.
the group is named: Hotline / 1st-level Support
1st question:
how do i correct escape the group name
Expected behavior:
curl -u user:password -H “Content-Type: application/json” ‘https://my.zammad.tld/api/v1/tickets/search?query=group:Hotline%20%2F%201st-level%20Support&limit=10&expand=true’
should return 10 tickets from the group called “Hotline / 1st-level Support”
Actual behavior:
returning [ ]
curl -u user:password -H “Content-Type: application/json” ‘https://my.zammad.tld/api/v1/tickets/search?query=group:Hotline%20*&limit=10&expand=true’
seams to work.
2nd question:
how could i combine group and state at the ticket query
Expected behavior:
curl -u user:password -H “Content-Type: application/json” ‘https://my.zammad.tld/api/v1/tickets/search?query=(state%3Aopen%20ORstate%3Anew)%20AND%20group:Hotline%20*&limit=10&expand=true’
should return 10 tickets with state NEW or OPEN from the group called “Hotline / 1st-level Support”
Actual behavior:
returning [ ]
same behavior if i replace the group name with the group id
curl -u user:password -H “Content-Type: application/json” ‘https://my.zammad.tld/api/v1/tickets/search?query=(state%3Aopen%20ORstate%3Anew)%20AND%20group_id:2&limit=10&expand=true’
Infos:
- Used Zammad version: 2.6.0-1539172999.52227057.stretch
- Used Zammad installation source: (debian 9 packager.io)
- Operating system: Debian GNU/Linux 9 (stretch)
- Browser + version: linux curl
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2l zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
thanks for your support