Bulk exporting tickets/articles to email

Hello, I need to export multiple tickets selected via generic agent process to plain .eml format. I know the generic agent allows to run ticket commands/custom modules, however it's unclear to me how to proceed. Would someone please be so kind to provide an example ? What I need is to export all tickets/articles in a queue so that I am able to import them back to a mailbox. Thanks, gs

There is no optimal way to do this. One way would be to print (to pdf) the
tickets and you have them.
The following is just an idea:
You could use bin/otrs.GetTicketThread.pl
But what would be the goal? you'd still need to get (something) into an
email and I can pretty much guarantee you're not going to get something
immediately threadable and certainly not attachments.
bin/otrs.GetTicketThread.pl -t 1
TicketID 1 looks like this:
=====================================================================
TicketNumber: 2010080210123456
TicketID: 1
Created: 2010-08-02 08:00:00
Queue: Raw
State: new
Priority: 3 normal
Lock: unlock
---------------------------------------------------------------------
ArticleID: 1
From: OTRS Feedback
Hello,
I need to export multiple tickets selected via generic agent process to plain .eml format. I know the generic agent allows to run ticket commands/custom modules, however it's unclear to me how to proceed. Would someone please be so kind to provide an example ? What I need is to export all tickets/articles in a queue so that I am able to import them back to a mailbox.
Thanks, gs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

You could use bin/otrs.GetTicketThread.pl But what would be the goal? you'd still need to get (something) into an email and I can pretty much guarantee you're not going to get something immediately threadable and certainly not attachments.
Well, the goal is to import back the article (or the entire ticket thread) into a mail account, so the GetTicketThread is not exactly what I need, but could be useful as a template script if someone knows the OTRS methods necessary to export an article in original format (which can be saved into a .eml file), by exporting all the articles in a ticket thread to .eml file the .eml files could then be imported into any mailboxes.

There is no "export an article in original format". That would be however
you've backed up the source email.
On Sat, Jun 6, 2015 at 2:15 AM, Blue Web
You could use bin/otrs.GetTicketThread.pl
But what would be the goal? you'd still need to get (something) into an email and I can pretty much guarantee you're not going to get something immediately threadable and certainly not attachments.
Well, the goal is to import back the article (or the entire ticket thread) into a mail account, so the GetTicketThread is not exactly what I need, but could be useful as a template script if someone knows the OTRS methods necessary to export an article in original format (which can be saved into a .eml file), by exporting all the articles in a ticket thread to .eml file the .eml files could then be imported into any mailboxes.
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
participants (2)
-
Blue Web
-
Gerald Young