group_id.rb 306 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Import::Kayako::Case::GroupId < Sequencer::Unit::Common::Provider::Named
  3. uses :resource, :id_map
  4. private
  5. def group_id
  6. id_map['Group'].fetch(resource['assigned_team']&.fetch('id'), 1)
  7. end
  8. end