From 0a06ff1464da6e8d490c31167c93a9dbac4505dd Mon Sep 17 00:00:00 2001 From: Jason Crome Date: Fri, 27 Sep 2024 11:33:44 -0500 Subject: [PATCH] Update Zendesk example to better match trial site Column mappings were expanded, and Zendesk priorities adapted to work in RT. --- lib/RT/Extension/Import/CSV.pm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/lib/RT/Extension/Import/CSV.pm b/lib/RT/Extension/Import/CSV.pm index 0024dca..c869ef5 100644 --- a/lib/RT/Extension/Import/CSV.pm +++ b/lib/RT/Extension/Import/CSV.pm @@ -1828,6 +1828,16 @@ API. See L { None => 0, Low => 25, Normal => 50, High => 75, Urgent => 100 }, + ); + =back Exporting user information via the Zendesk API includes a bunch of @@ -1869,8 +1879,12 @@ configuration: 'Requestor' => 'Requester', 'Created' => 'Requested', 'LastUpdated' => 'Updated', - 'CF.Ticket Type' => 'Topic', - 'CF.Channel' => 'Channel', + 'CF.Topic' => 'Topic', + 'Told' => 'Assignee updated', + 'Priority' => sub { + my %priority = RT->Config->Get('PriorityAsString'); + return $priority{ 'Default' }{ ($_[0]->{ 'Priority' }) }; + }, ); Set( %CSVOptions, ( @@ -1879,7 +1893,7 @@ configuration: escape_char => '', ) ); -(you'll need to create two ticket custom fields: Ticket Type and Channel) +(you'll need to create a custom field named Topic) If tickets were exported to a file named F, the following command will import tickets into your RT instance: