Search Articles from Agent in the current month

Infos:

  • Used Zammad version: 4.1.0
  • Used Zammad installation type: Source
  • Operating system: Ubuntu Server 18.04.6 LTS
  • Browser + version: Chrome

Expected behavior:

We would like to have the response, where we’ve a list from the articles which the agent did write in the current month.

Actual behavior:

The response has 3 tickets mentioned which are not the last one or either from the current month

Steps to reproduce the behavior:

first i did check, what does the response is. and with that i found out, that the response had 3 tickets (why 3?) which are not the last and very old ones.
curl -k -H "Authorization: Token token={token}" "https://{url}/api/v1/tickets/search?query=article.from%3A{agent-username}"

Then i did try to add a date-range, but then i had no response (empty one)
curl -k -H "Authorization: Token token={token}" "https://{url}/api/v1/tickets/search?query=article.from%3A{agent-username}%20AND%20created_at%3A%5b2022-02-01%20TO%2022-02-28%5d"


Maybe someone has the right request, to get the articles of agent XY for the current month.
Thanks for help.

Hey,

the correct search query would be:
article.from: "{agent name}" AND article.created_at:[2022-03-01 TO 2022-03-31]

Keep in mind that you have to use pagination with more than 50 results (which is likely).

Please note that Zammad 4.1 is terribly outdated (we’re at 5.1 currently) and is prune to security issues. Consider upgrading asap.