
We have a few queues that contain hundreds of email messages that we would like to move to another queue. Is there a way to move all messages in a queue to another queue? Thank you Travis ________________________________ I've stopped 53,041 spam messages. You can too! One month FREE spam protection at www.cloudmark.com http://www.cloudmark.com/spamnet?v1 http://www.cloudmark.com/spamnet?v1

On Thursday, January 15, 2004 7:51 PM
travis@cloudmark.com
We have a few queues that contain hundreds of email messages that we would like to move to another queue. Is there a way to move all messages in a queue to another queue? Thank you
GenericAgent is your friend. See: http://doc.otrs.org/1.1/html/generic-agent.html Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

Can't you just update the queue_id in the ticket to table to reflect the new queue ? update ticket set queue_id = new_queue_id where queue_id=old_queue_id travis@cloudmark.com writes:
We have a few queues that contain hundreds of email messages that we would like to move to another queue. Is there a way to move all messages in a queue to another queue? Thank you
Travis
________________________________
I've stopped 53,041 spam messages. You can too! One month FREE spam protection at www.cloudmark.com http://www.cloudmark.com/spamnet?v1 http://www.cloudmark.com/spamnet?v1
--- Mark Mertel mmertel@olympus.net Phone 206-322-9074 Cell 206-409-2018

On Thursday, January 15, 2004 8:56 PM
Mark Mertel
Can't you just update the queue_id in the ticket to table to reflect the new queue ?
You can, for sure, but it's not recommended to touch the raw database when there'se no need to. Regards, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388

On Thu, Jan 15, 2004 at 09:18:29PM +0100, Robert Kehl wrote:
Can't you just update the queue_id in the ticket to table to reflect the new queue ?
You can, for sure, but it's not recommended to touch the raw database when there'se no need to.
Yepp. And the GenericAgent will also add the move action to the ticket history. :)
Robert Kehl
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

ok - its just the database guy deep inside trying to get out. help, i'm trapped in a SQL puzzle ! Robert Kehl writes:
On Thursday, January 15, 2004 8:56 PM Mark Mertel
wrote: Can't you just update the queue_id in the ticket to table to reflect the new queue ?
You can, for sure, but it's not recommended to touch the raw database when there'se no need to.
Regards,
Robert Kehl
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
_______________________________________________ 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 Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
--- Mark Mertel mmertel@olympus.net Phone 206-322-9074 Cell 206-409-2018

On Thursday, January 15, 2004 9:47 PM
Mark Mertel
ok - its just the database guy deep inside trying to get out. help, i'm trapped in a SQL puzzle !
Put on your blue jeans, now you're the script guy: # cd /opt/otrs # cp Kernel/Config/GenericAgent.pm.dist Kernel/Config/Mover.pm # vi Mover.pm Add the following as the only job where it reads "# insert your jobs (see Kernel/Config/GenericAgent.pm.examples)": # -- # [name of job] -> move all tickets from Raw to NewQueue # -- 'move tickets from Raw to NewQueue' => { # get all tickets with these properties Queue => 'Raw', States => ['new', 'open'], Locks => ['unlock'], # new ticket properties New => { Queue => 'NewQueue', Note => { From => 'GenericAgent', Subject => 'Moved!', Body => 'Moved from "Raw" to "NewQueue" - cleanup done.', ArticleType => 'note-internal', # note-internal|note-external|note-report }, }, }, Now let it run: # bin/GenericAgent.pl -c 'Kernel::Config::Mover' hth, Robert Kehl -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Tel. +49 (0)6172 4832388
participants (4)
-
Mark Mertel
-
Martin Edenhofer
-
Robert Kehl
-
travis@cloudmark.com