new_ticket.rb 459 B

123456789101112131415161718
  1. module Import
  2. module OTRS
  3. class History
  4. class NewTicket < Import::OTRS::History
  5. def init_callback(history)
  6. @history_attributes = {
  7. id: history['HistoryID'],
  8. o_id: history['TicketID'],
  9. history_type: 'created',
  10. history_object: 'Ticket',
  11. created_at: history['CreateTime'],
  12. created_by_id: history['CreateBy']
  13. }
  14. end
  15. end
  16. end
  17. end
  18. end