API importing tickets, cannot set "created_by" field

Infos:

  • Used Zammad version: 5.1.x
  • Used Zammad installation type: docker (Docker Hub)

Context:

I would like to migrate all tickets from another system to Zammad using the API.

Thank to this solution, with Setting.set('import_mode', true),
I am able to set the field created_at to keep the history time records.

BUT

The fields created_by and created_by_id are ignored.

Here a screenshot to show the problem:

I solved my problem with this → behalf-of-other-user

Depending of who wrote the article (Customer or Agent),
we have to change the HTTP header : X-On-Behalf-Of: (ID|login|email).

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.