[rt-users] setting up a custom status?

John Jasen jjasen at datafoundation.com
Wed Oct 1 18:50:10 EDT 2003


On Wed, 1 Oct 2003, John Jasen wrote:

> Is there a way of adding to or changing the default status? We'd like to 
> have 'testing' 'pending' and a few others, and I've not easily found a way 
> of tackling this one.

Wow ... that was fast!

Bruce Segal pointed me to:
 
$RT_DIR/lib/RT/Queue_Overlay.pm, where @ACTIVE_STATUS = qw(new open 
stalled);

You can add your custom status(es) there.

If they're active, you'll also need to modify:
$RT_DIR/share/html/Elements/QuickSearch
+ a bit complicated. depending on how you want them displayed. I decided 
to treat testing and pending as open, and so:
  $Tickets->LimitStatus(VALUE => "open");                                
+ $Tickets->LimitStatus(VALUE => "pending");
+ $Tickets->LimitStatus(VALUE => "testing");

and changed

<td><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfStatus=open&ValueOfSta
tus=new&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1" TITLE="<% 
$queue->Description %>"><%$queue->Name%></a></TD>

to

<td><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfStatus=open&ValueOfSta
tus=new&ValueOfStatus=pending&ValueOfStatus=testing&StatusOp=%3D&QueueOp=%3D&Val
ueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1" TITLE="<% 
$queue->Description %>"><%$queue->Name%></a></TD>

and changed

<td align="right"><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfStatus=o
pen&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$open%></a></TD>

to

<td align="right"><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfStatus=o
pen&ValueOfStatus=pending&ValueOfStatus=testing&StatusOp=%3D&QueueOp=%3D&ValueOf
Queue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$open%></a></TD>

$RT_DIR/share/html/Elements/MyTickets
  $MyTickets->LimitStatus(VALUE => "open");
  $MyTickets->LimitStatus(VALUE => "new");
+ $MyTickets->LimitStatus(VALUE => "pending");
+ $MyTickets->LimitStatus(VALUE => "testing");

$RT_DIR/share/html/Elements/MyRequests
  $MyTickets->LimitStatus(VALUE => "open");
  $MyTickets->LimitStatus(VALUE => "new");
+ $MyTickets->LimitStatus(VALUE => "pending");
+ $MyTickets->LimitStatus(VALUE => "testing");

And it all seems to be hunky-dory.







More information about the rt-users mailing list