Problems with _Local.pm overlays

Following the archived discussion about extending the available
ticket statuses, I’ve attempted to modify @RT::Queue::ACTIVE_STATUS
and @RT::Queue::INACTIVE_STATUS to add my custom status(es). The
instructions I’m using are these
http://marc.theaimsgroup.com/?l=rt-users&m=108206010610834&w=2
and these
http://wiki.bestpractical.com/index.cgi?CustomStatuses

However, I have so far been unable to get the list of ticket statuses
to change. Here’s what I’ve done:

Created Queue_Local.pm, with these four lines:
@ACTIVE_STATUS = qw(new open stalled testing);
@INACTIVE_STATUS = qw(resolved rejected deleted);
@STATUS = (@ACTIVE_STATUS, @INACTIVE_STATUS);
1;

I originally placed it in /usr/local/rt3/local/lib/RT/Queue_Local.pm,
then restarted the web server to make sure mod_perl didn’t cache the
code (as it can do). The new status “testing” did not appear when
trying to add or modify tickets. So, I’ve also tried creating files
at the following paths:
/usr/local/rt3/local/lib/Queue_Local.pm
/usr/local/rt3/local/lib/RT/Queue_Overlay.pm
/usr/local/rt3/lib/RT/Queue_Local.pm

So far, nothing has worked. Are the instructions I cited above still
relevant? I know that sometimes the code changes without the
documentation being updated. Or, am I just missing something? This
seems like it should be fairly simple, so I’m a bit surprised that it
didn’t “just work.”

Thanks for any guidance anyone can provide.
Matt

PGP.sig (186 Bytes)

Following the archived discussion about extending the available
ticket statuses

You can modify the current RT status with the variables in the config
file. Is there a reason you’re not doing that?

seph

Following the archived discussion about extending the available
ticket statuses

You can modify the current RT status with the variables in the config
file. Is there a reason you’re not doing that?

Probably because I was unaware of the option. :slight_smile: As I said, I was
following the available documentation, and it appears that is out of
date.

Thanks for the pointer!
Matt

PGP.sig (186 Bytes)