trabajo-afectivo/lib/import/otrs/history/new_ticket.rb
2022-01-01 14:38:12 +01:00

20 lines
565 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
module Import
module OTRS
class History
class NewTicket < Import::OTRS::History
def init_callback(history)
@history_attributes = {
id: history['HistoryID'],
o_id: history['TicketID'],
history_type: 'created',
history_object: 'Ticket',
created_at: history['CreateTime'],
created_by_id: history['CreateBy']
}
end
end
end
end
end