Thanks, this really well. After I deleted the attachments I was able to
load the ticket.
Where is fancy bred, in the heart or in the head?
Willy Wonka (Org: Merchant of Venice, Act III, Scene 2)From: Joby Walker [mailto:firstname.lastname@example.org]
Sent: Friday, November 03, 2006 4:45 PM
To: Jay Vlavianos
Subject: Re: [rt-users] Question about ticket gone CRAZY
This has happened a couple times for us. The following works well to
delete an entire range of tickets. Note this is for PgSQL, other DB may
require different syntax.
delete from attachments where transactionid IN (
select tx.id from transactions tx, tickets t
where tx.objecttype=‘RT::Ticket’ AND tx.objectid=t.id AND
tx.id >= AND
delete from transactions where id IN ( );
You the first time you run them you might want to replace the delete
with select *, just to make sure you are deleting what you want to
C&C SSG, University of Washington
Jay Vlavianos wrote:
I have a ticket that received 2500 replies on accident that I can no
longer manage. Apparently one of my admins had his personal email
forwarding to his home email which went offline. I am not sure how it
got into a loop, but it created the monster trail of history that
it unloadable. Is there any way to remove this history and
close the ticket? Ideally I could keep the ticket itself, instead of
deleting it from the database, but if that is what it takes J
Any help is greatly appreciated!
I’ve just decided to switch our Friday schedule to Monday, which means
that the test we take each Friday, on what we learned during the week,
will now take place on Monday, before we’ve learned it. But, since
is Tuesday, it doesn’t matter in the slightest.Mr. Turkentine
The rt-users Archives
Community help: http://wiki.bestpractical.com
Commercial support: email@example.com
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com