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 <feedb...@otrs.org>
To: Your OTRS System <otrs@localhost>
Subject: Welcome to OTRS!
Created: 2010-08-02 08:00:00
SenderType: customer
Body:
The OTRS Project http://forums.otrs.org///lists.otrs.org/.pen-source/.
---------------------------------------------------------------------

Then you'll need to parse this into something that you'll want to use in
email. You can use any command line command, with ARG[1] being the ticket id
maybe something like
/opt/otrs/bin/otrs.GetTicketThread.pl -t ARG[1] > /path/out/ARG[1].txt

This might (?) make a bunch of text files. Note that you could, in theory,
pipe the thread(s) to a command that nicely formats your email or mail it
or ...

Nothing here is tested. It may break things. It may not even work. Note
that if you do export a LOT, you should make sure you don't run out of disk
space.

On Fri, May 29, 2015 at 1:52 AM, Blue Web <blueweb...@gmail.com> wrote:

> 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
>
---------------------------------------------------------------------
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

Reply via email to