Fixes #3593 - Zendesk import creates new ticket numbers rather than using the Zendesk ticket IDs also as ticket numbers in Zammad.

This commit is contained in:
Martin Gruner 2021-06-08 12:39:47 +02:00 committed by Thorsten Eckel
parent 76ed276556
commit 2261a4fd48
2 changed files with 6 additions and 0 deletions

View file

@ -17,6 +17,7 @@ class Sequencer
provide_mapped do provide_mapped do
{ {
id: resource.id, id: resource.id,
number: resource.id,
title: subject, title: subject,
owner_id: owner_id, owner_id: owner_id,
group_id: group_id, group_id: group_id,

View file

@ -329,6 +329,7 @@ class ZendeskImportTest < ActiveSupport::TestCase
{ {
id: 2, id: 2,
data: { data: {
number: '2',
title: 'test', title: 'test',
note: nil, note: nil,
create_article_type_id: 1, create_article_type_id: 1,
@ -350,6 +351,7 @@ class ZendeskImportTest < ActiveSupport::TestCase
{ {
id: 3, id: 3,
data: { data: {
number: '3',
title: 'Bob Smith, here is the test ticket you requested', title: 'Bob Smith, here is the test ticket you requested',
note: nil, note: nil,
create_article_type_id: 10, create_article_type_id: 10,
@ -371,6 +373,7 @@ class ZendeskImportTest < ActiveSupport::TestCase
{ {
id: 5, id: 5,
data: { data: {
number: '5',
title: 'Twitter', title: 'Twitter',
note: nil, note: nil,
create_article_type_id: 6, create_article_type_id: 6,
@ -387,6 +390,7 @@ class ZendeskImportTest < ActiveSupport::TestCase
{ {
id: 143, id: 143,
data: { data: {
number: '143',
title: 'Basti ist cool', title: 'Basti ist cool',
note: nil, note: nil,
create_article_type_id: 8, create_article_type_id: 8,
@ -403,6 +407,7 @@ class ZendeskImportTest < ActiveSupport::TestCase
{ {
id: 145, id: 145,
data: { data: {
number: '145',
title: 'closed ticket - should be archived and imported', title: 'closed ticket - should be archived and imported',
note: nil, note: nil,
create_article_type_id: 11, create_article_type_id: 11,