You are not logged in.
Hello,
I am currently Importing our old Tickets to GLPI via API and I have the Problem hat the Ticket and the Follow ups are written by me.
What Code do I have to add to change the writer of those Messages for example in here
´´´
def zammad_ticket_message_to_glpi_followup(ticket_message_body: str, base_ticket_id: int) -> typing.Dict:
return {
"itemtype": "Ticket",
'items_id': base_ticket_id,
'content': ticket_message_body,
'is_private': 0,
"requesttypes_id": 1,
"sourceitems_id": 0,
"sourceof_items_id": 0
}
´´´
Offline
def zammad_ticket_message_to_glpi_followup(ticket_message_body: str, base_ticket_id: int, writer_user_id: int) -> typing.Dict:
return {
"itemtype": "Ticket",
'items_id': base_ticket_id,
'content': ticket_message_body,
'is_private': 0,
'users_id': writer_user_id, # Specify the ID of the user who wrote the message
"requesttypes_id": 1,
"sourceitems_id": 0,
"sourceof_items_id": 0
}
Offline
Thank you very much
Offline