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: