Reset Scrips to Default?

Hi Folks -

I’ve been using RT for a while, but basically just using what was
set up by an administrator before me. I recently did a major upgrade
from 3.8.8 to 4.2.1 to get us on a recent release.

Since this upgrade (and maybe before), we were getting some
complaints that too much email was coming out of RT. I looked around
a bit and we seem to have a mess of Scrips running on all sorts of
status changes. I would like to declare bankruptcy on the scrips that
are set up and just get all the responses reset back to the default
and be able to modify from there.

I’ve searched through Google and the list archives, but can’t seem to
find any methodology for doing this. In the archives, I saw a script
that was in the GIT tree called fixup-default-scrips, but a) I don’t
see it in the release tar and b) I’m guessing it might have been for
internal dev, not for what I am doing.

Does anyone have a good way to do this?

Thanks!
Skadz

I’ve searched through Google and the list archives, but can’t seem to
find any methodology for doing this. In the archives, I saw a script
that was in the GIT tree called fixup-default-scrips, but a) I don’t
see it in the release tar and b) I’m guessing it might have been for
internal dev, not for what I am doing.

While theoretically possible to do some surgery on the tables and
reinsert, you’d have to be quite careful. You could mess around on a
test instance disabling/deleting all your
scrips/scripactions/scripconditions/templates and then using the
Initialdata docs to insert part of our initial data.

I’d probably just stand up a tiny 4.2 instance and use it as a
reference to clean up the existing Scrips rather than risk the
surgery.

I expect what you found in git was actually the branch
4.2/fixup-default-scrips which we merged and which was making some
changes to the default set of scrips that RT ships with.

-kevin