new_ticket.rb 565 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module Import
  3. module OTRS
  4. class History
  5. class NewTicket < Import::OTRS::History
  6. def init_callback(history)
  7. @history_attributes = {
  8. id: history['HistoryID'],
  9. o_id: history['TicketID'],
  10. history_type: 'created',
  11. history_object: 'Ticket',
  12. created_at: history['CreateTime'],
  13. created_by_id: history['CreateBy']
  14. }
  15. end
  16. end
  17. end
  18. end
  19. end