How do I modify Quicksearch view on 4.0.2?

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

Thanks in advance,
Elliot

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

-kevin

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

The only place in etc/RT_Config.pm that ‘Simple’ occurs is:

=item C<$OnlySearchActiveTicketsInSimpleSearch>

When query in simple search doesn’t have status info, use this to only
search active ones.

=cut

Set($OnlySearchActiveTicketsInSimpleSearch, 1);

I changed this to 0 and restarted apache, and Quicksearch still only
shows ‘new’, ‘open’ and ‘stalled’.

Is this the right place?

Thanks,
Elliot

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

The only place in etc/RT_Config.pm that ‘Simple’ occurs is:

=item C<$OnlySearchActiveTicketsInSimpleSearch>

When query in simple search doesn’t have status info, use this to only
search active ones.

=cut

Set($OnlySearchActiveTicketsInSimpleSearch, 1);

I changed this to 0 and restarted apache, and Quicksearch still only
shows ‘new’, ‘open’ and ‘stalled’.

Oh, you want to change the list of Queues and statuses, which for some
historical reason is completely misnamed Quicksearch?

The simplest solution is almost certainly going to be to override
Quicksearch and pass all the desired statuses into
QueueSummaryByLifecycles

-kevin

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

The only place in etc/RT_Config.pm that ‘Simple’ occurs is:

=item C<$OnlySearchActiveTicketsInSimpleSearch>

When query in simple search doesn’t have status info, use this to only
search active ones.

=cut

Set($OnlySearchActiveTicketsInSimpleSearch, 1);

I changed this to 0 and restarted apache, and Quicksearch still only
shows ‘new’, ‘open’ and ‘stalled’.

Oh, you want to change the list of Queues and statuses, which for some
historical reason is completely misnamed Quicksearch?

The simplest solution is almost certainly going to be to override
Quicksearch and pass all the desired statuses into
QueueSummaryByLifecycles

Okay, so I think I figured out how to do this but I ran into a different snag.

I copied share/html/Elements/Quicksearch to
local/html/Elements/Quicksearch to do the override, but now I get:

‘Odd number of parameters passed to component expecting name/value
pairs’ on my ‘RT at a glance’ page where the Quicksearch component
would normally appear.

This is without changing ANY code, just copying the file.

Am I doing the override wrong or did I hit a bug?

Thanks,
Elliot

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

The only place in etc/RT_Config.pm that ‘Simple’ occurs is:

=item C<$OnlySearchActiveTicketsInSimpleSearch>

When query in simple search doesn’t have status info, use this to only
search active ones.

=cut

Set($OnlySearchActiveTicketsInSimpleSearch, 1);

I changed this to 0 and restarted apache, and Quicksearch still only
shows ‘new’, ‘open’ and ‘stalled’.

Oh, you want to change the list of Queues and statuses, which for some
historical reason is completely misnamed Quicksearch?

The simplest solution is almost certainly going to be to override
Quicksearch and pass all the desired statuses into
QueueSummaryByLifecycles

Okay, so I think I figured out how to do this but I ran into a different snag.

I copied share/html/Elements/Quicksearch to
local/html/Elements/Quicksearch to do the override, but now I get:

‘Odd number of parameters passed to component expecting name/value
pairs’ on my ‘RT at a glance’ page where the Quicksearch component
would normally appear.

This is without changing ANY code, just copying the file.

Am I doing the override wrong or did I hit a bug?

Show more context. You’ve changed something, use diff -u original new_file to see the difference. May you copied file from older
version?

Thanks,
Elliot

RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA October 18 & 19, 2011
  • Washington DC, USA October 31 & November 1, 2011
  • Melbourne VIC, Australia November 28 & 29, 2011
  • Barcelona, Spain November 28 & 29, 2011

Best regards, Ruslan.

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

The only place in etc/RT_Config.pm that ‘Simple’ occurs is:

=item C<$OnlySearchActiveTicketsInSimpleSearch>

When query in simple search doesn’t have status info, use this to only
search active ones.

=cut

Set($OnlySearchActiveTicketsInSimpleSearch, 1);

I changed this to 0 and restarted apache, and Quicksearch still only
shows ‘new’, ‘open’ and ‘stalled’.

Oh, you want to change the list of Queues and statuses, which for some
historical reason is completely misnamed Quicksearch?

The simplest solution is almost certainly going to be to override
Quicksearch and pass all the desired statuses into
QueueSummaryByLifecycles

Okay, so I think I figured out how to do this but I ran into a different snag.

I copied share/html/Elements/Quicksearch to
local/html/Elements/Quicksearch to do the override, but now I get:

‘Odd number of parameters passed to component expecting name/value
pairs’ on my ‘RT at a glance’ page where the Quicksearch component
would normally appear.

This is without changing ANY code, just copying the file.

Am I doing the override wrong or did I hit a bug?

Show more context. You’ve changed something, use diff -u original new_file to see the difference. May you copied file from older
version?

lifecycle root:local/html/Elements#>pwd

/usr/local/rt/rt-4.0.2/local/html/Elements

lifecycle root:local/html/Elements#>cp
…/…/…/share/html/Elements/Quicksearch .

lifecycle root:local/html/Elements#>/usr/local/etc/rc.d/apache22
restart
Performing sanity check on
apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 61075.
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

lifecycle root:local/html/Elements#>ls
./ …/ Quicksearch

lifecycle root:local/html/Elements#>diff -u
…/…/…/share/html/Elements/Quicksearch Quicksearch

brand new copy, no difference from original, yet I still get ‘Odd
number of parameters passed to component expecting name/value pairs’
in place of the ‘Quick search’ component on the ‘RT at a glance’ page.
If I delete this newly copied file, the ‘RT at a glance’ page goes
back to normal.

This is with a fresh rt-4.0.2 install.

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

The only place in etc/RT_Config.pm that ‘Simple’ occurs is:

=item C<$OnlySearchActiveTicketsInSimpleSearch>

When query in simple search doesn’t have status info, use this to only
search active ones.

=cut

Set($OnlySearchActiveTicketsInSimpleSearch, 1);

I changed this to 0 and restarted apache, and Quicksearch still only
shows ‘new’, ‘open’ and ‘stalled’.

Oh, you want to change the list of Queues and statuses, which for some
historical reason is completely misnamed Quicksearch?

The simplest solution is almost certainly going to be to override
Quicksearch and pass all the desired statuses into
QueueSummaryByLifecycles

Okay, so I think I figured out how to do this but I ran into a different snag.

I copied share/html/Elements/Quicksearch to
local/html/Elements/Quicksearch to do the override, but now I get:

‘Odd number of parameters passed to component expecting name/value
pairs’ on my ‘RT at a glance’ page where the Quicksearch component
would normally appear.

This is without changing ANY code, just copying the file.

Am I doing the override wrong or did I hit a bug?

Show more context. You’ve changed something, use diff -u original new_file to see the difference. May you copied file from older
version?

lifecycle root:local/html/Elements#>pwd

/usr/local/rt/rt-4.0.2/local/html/Elements

lifecycle root:local/html/Elements#>cp
…/…/…/share/html/Elements/Quicksearch .

lifecycle root:local/html/Elements#>/usr/local/etc/rc.d/apache22
restart
Performing sanity check on
apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 61075.
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

lifecycle root:local/html/Elements#>ls
./ …/ Quicksearch

lifecycle root:local/html/Elements#>diff -u
…/…/…/share/html/Elements/Quicksearch Quicksearch

brand new copy, no difference from original, yet I still get ‘Odd
number of parameters passed to component expecting name/value pairs’
in place of the ‘Quick search’ component on the ‘RT at a glance’ page.
If I delete this newly copied file, the ‘RT at a glance’ page goes
back to normal.

This is with a fresh rt-4.0.2 install.

Turn on DevelMode to get more info in the browser and send us error
with stack traces. Without stack trace it’s hard to believe that the
same file works differently in different mason’s roots.

Make sure that path you copy from is actually the right one. Use
“System Configuration” in the Web UI for that.

Best regards, Ruslan.

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

The only place in etc/RT_Config.pm that ‘Simple’ occurs is:

=item C<$OnlySearchActiveTicketsInSimpleSearch>

When query in simple search doesn’t have status info, use this to only
search active ones.

=cut

Set($OnlySearchActiveTicketsInSimpleSearch, 1);

I changed this to 0 and restarted apache, and Quicksearch still only
shows ‘new’, ‘open’ and ‘stalled’.

Oh, you want to change the list of Queues and statuses, which for some
historical reason is completely misnamed Quicksearch?

The simplest solution is almost certainly going to be to override
Quicksearch and pass all the desired statuses into
QueueSummaryByLifecycles

Okay, so I think I figured out how to do this but I ran into a different snag.

I copied share/html/Elements/Quicksearch to
local/html/Elements/Quicksearch to do the override, but now I get:

‘Odd number of parameters passed to component expecting name/value
pairs’ on my ‘RT at a glance’ page where the Quicksearch component
would normally appear.

This is without changing ANY code, just copying the file.

Am I doing the override wrong or did I hit a bug?

Show more context. You’ve changed something, use diff -u original new_file to see the difference. May you copied file from older
version?

lifecycle root:local/html/Elements#>pwd

/usr/local/rt/rt-4.0.2/local/html/Elements

lifecycle root:local/html/Elements#>cp
…/…/…/share/html/Elements/Quicksearch .

lifecycle root:local/html/Elements#>/usr/local/etc/rc.d/apache22
restart
Performing sanity check on
apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 61075.
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

lifecycle root:local/html/Elements#>ls
./ …/ Quicksearch

lifecycle root:local/html/Elements#>diff -u
…/…/…/share/html/Elements/Quicksearch Quicksearch

brand new copy, no difference from original, yet I still get ‘Odd
number of parameters passed to component expecting name/value pairs’
in place of the ‘Quick search’ component on the ‘RT at a glance’ page.
If I delete this newly copied file, the ‘RT at a glance’ page goes
back to normal.

This is with a fresh rt-4.0.2 install.

Turn on DevelMode to get more info in the browser and send us error
with stack traces. Without stack trace it’s hard to believe that the
same file works differently in different mason’s roots.

Make sure that path you copy from is actually the right one. Use
“System Configuration” in the Web UI for that.

Okay, it gets even weirder. You didn’t believe me before… for sure
you’re not going to believe me now…

leaving the newly copied local/html/Elements/Quicksearch there
(unchanged) and setting:

Set($DevelMode, “1”);

The error goes away and the ‘RT at a glance’ page displays normally.
Making only one change:

Set($DevelMode, “0”);

The error comes back.

What now?

I’ve looked at http://requesttracker.wikia.com/wiki/Quicksearch which
applies to 3.8.x, but not to 4.0.2. I’d like to also show ‘resolved’
and ‘rejected’ statuses (basically I want to show all statues).

Does anyone have any pointers how to accomplish this in 4.0.2?

Or even better, to just create a new dashboard that shows this?

There’s a config option for that these days, just search for Simple in
etc/RT_Config.pm

The only place in etc/RT_Config.pm that ‘Simple’ occurs is:

=item C<$OnlySearchActiveTicketsInSimpleSearch>

When query in simple search doesn’t have status info, use this to only
search active ones.

=cut

Set($OnlySearchActiveTicketsInSimpleSearch, 1);

I changed this to 0 and restarted apache, and Quicksearch still only
shows ‘new’, ‘open’ and ‘stalled’.

Oh, you want to change the list of Queues and statuses, which for some
historical reason is completely misnamed Quicksearch?

The simplest solution is almost certainly going to be to override
Quicksearch and pass all the desired statuses into
QueueSummaryByLifecycles

Okay, so I think I figured out how to do this but I ran into a different snag.

I copied share/html/Elements/Quicksearch to
local/html/Elements/Quicksearch to do the override, but now I get:

‘Odd number of parameters passed to component expecting name/value
pairs’ on my ‘RT at a glance’ page where the Quicksearch component
would normally appear.

This is without changing ANY code, just copying the file.

Am I doing the override wrong or did I hit a bug?

Show more context. You’ve changed something, use diff -u original new_file to see the difference. May you copied file from older
version?

lifecycle root:local/html/Elements#>pwd

/usr/local/rt/rt-4.0.2/local/html/Elements

lifecycle root:local/html/Elements#>cp
…/…/…/share/html/Elements/Quicksearch .

lifecycle root:local/html/Elements#>/usr/local/etc/rc.d/apache22
restart
Performing sanity check on
apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 61075.
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

lifecycle root:local/html/Elements#>ls
./ …/ Quicksearch

lifecycle root:local/html/Elements#>diff -u
…/…/…/share/html/Elements/Quicksearch Quicksearch

brand new copy, no difference from original, yet I still get ‘Odd
number of parameters passed to component expecting name/value pairs’
in place of the ‘Quick search’ component on the ‘RT at a glance’ page.
If I delete this newly copied file, the ‘RT at a glance’ page goes
back to normal.

This is with a fresh rt-4.0.2 install.

Turn on DevelMode to get more info in the browser and send us error
with stack traces. Without stack trace it’s hard to believe that the
same file works differently in different mason’s roots.

Make sure that path you copy from is actually the right one. Use
“System Configuration” in the Web UI for that.

Okay, it gets even weirder. You didn’t believe me before… for sure
you’re not going to believe me now…

leaving the newly copied local/html/Elements/Quicksearch there
(unchanged) and setting:

Set($DevelMode, “1”);

The error goes away and the ‘RT at a glance’ page displays normally.
Making only one change:

Set($DevelMode, “0”);

The error comes back.

What now?

One more piece of relevant information that I didn’t notice before.
Normally I have the ‘Dashboard’ and ‘Refresh’ components underneath
the ‘Quick search’ component. When the error is there, the
‘Dashboard’ and ‘Refresh’ components are not there.