Default values

Hi,

I have a question.

When I login rt, I see tickets with open status. It seems to me the
default condition after login will be;

Status : open
Queue : any
Refresh : Never

I would like to know how to change the default values.

Thanks in advance.


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935


When I login rt, I see tickets with open status. It seems to me the
default condition after login will be;

Status : open
Queue : any
Refresh : Never

I would like to know how to change the default values.

Set the options you want, click Update Queue Filters, and then bookmark
that page… I put it in the IE Links bar, so I just click there and
bam it’s there.

My options, which work well for me, are:

Status: unresolved
Queue: any
Owner: none / myself
Refresh: every 3 minutes
Sort: Last, up

Give it a shot… :slight_smile: -rt

Ryan Tucker rtucker@netacc.net
Network Operations Manager, NetAccess, Inc.

in lib/rt/ui/web/manipulate.pm, there’s a sub called InitDisplay.
just after the #display a default queue comments, you can place
whatever form values you want in there.

For reference, here’s 1.0.7’s InitDisplay:

sub InitDisplay {

if (!($frames) && (!$rt::ui::web::FORM{‘display’})) {

if ($serial_num > 0 || $rt::ui::web::FORM{'do_req_create'}) {       
  $rt::ui::web::FORM{'display'} = "History";
}
else{
  
  #display a default queue
  #$rt::ui::web::FORM{'q_unowned'}='true';
  #$rt::ui::web::FORM{'q_owned_by_me'}='true';
  $rt::ui::web::FORM{'q_status'}='open';
  $rt::ui::web::FORM{'q_by_date_due'}='true';
  $rt::ui::web::FORM{'display'} = "Queue";
}
}

if ($frames) {
      if (!($rt::ui::web::FORM{'display'}) and 
          !($rt::ui::web::FORM{'serial_num'} ) and
          !($rt::ui::web::FORM{'queue_id'}) ) {      
    &frame_display_queue();
  }
  
}

}On Fri, Feb 23, 2001 at 11:45:38AM +0900, Kazu Kimura wrote:

Hi,

I have a question.

When I login rt, I see tickets with open status. It seems to me the
default condition after login will be;

Status : open
Queue : any
Refresh : Never

I would like to know how to change the default values.

Thanks in advance.


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935



rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

autoconf is your friend until it mysteriously stops working, at which
point it is a snarling wolverine attached to your genitals by its teeth
(that said, it’s better than most of the alternatives) – Nathan Mehl

I evaluated Ryan’s method and Jesse’.

Suppose I need 5 minutes as refresh time and need to see requests
assigned to me as defaults, then, following should be changed in
manipulate.pm.
(1)
#we subtract 1 from the refresh rate so that the default value is -1…which
#means never refresh…as 0 should…but 0 means refresh now.

if ( ! $rt::ui::web::FORM{‘refresh’} ) {
$rt::ui::web::FORM{‘refresh’} = -1; <—300 for 5minutes
instead.
}
if ($rt::ui::web::FORM{‘refresh’} > -1) {
print “<META HTTP-EQUIV="REFRESH" CONTENT="”. $rt::ui::web::FORM{‘refresh’}
.“">”;

(2)
#$rt::ui::web::FORM{‘q_owned_by_me’}=‘true’;

$rt::ui::web::FORM{'q_owned_by_me'}='true';

Simply, # is deleted.

This worked well. But still I have a question concerning queue. How do we set? and if it is set, are all users affected?

Thank you for the advise.

Regards,
Kazu


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935


basically, the method I described is for altering the base search for
everyone. The way you should configure the variables is by
doing the search you want and then taking the values from the
generated URL and plugging them into:

$rt::ui::web::FORM{‘q_’}=‘’;

if you only want to set defaukts for yourself, just bookmark new searches. it
will be much easier.

    -jOn Fri, Feb 23, 2001 at 01:45:12PM +0900, Kazu Kimura wrote:

I evaluated Ryan’s method and Jesse’.

Suppose I need 5 minutes as refresh time and need to see requests
assigned to me as defaults, then, following should be changed in
manipulate.pm.
(1)
#we subtract 1 from the refresh rate so that the default value is -1…which
#means never refresh…as 0 should…but 0 means refresh now.

if ( ! $rt::ui::web::FORM{‘refresh’} ) {
$rt::ui::web::FORM{‘refresh’} = -1; <—300 for 5minutes
instead.
}
if ($rt::ui::web::FORM{‘refresh’} > -1) {
print “<META HTTP-EQUIV="REFRESH" CONTENT="”. $rt::ui::web::FORM{‘refresh’}
.“">”;

(2)
#$rt::ui::web::FORM{‘q_owned_by_me’}=‘true’;

$rt::ui::web::FORM{‘q_owned_by_me’}=‘true’;
Simply, # is deleted.

This worked well. But still I have a question concerning queue. How do we set? and if it is set, are all users affected?

Thank you for the advise.

Regards,
Kazu


Kazu Kimura kimura@ctc.ad.jp
IP Network tech. dep. CTC
Phone +81-52-740-8101
Fax +81-52-740-8935



rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

…realized that the entire structure of the net could be changed to be made
more efficient, elegant, and spontaneously make more money for everyone
involved. It’s a marvelously simple diagram, but this form doesn’t have a way
for me to draw it. It’ll wait. -Adam Hirsch

basically, the method I described is for altering the base search for
everyone. The way you should configure the variables is by
doing the search you want and then taking the values from the
generated URL and plugging them into:

$rt::ui::web::FORM{‘q_’}=‘’;

if you only want to set defaukts for yourself, just bookmark new searches. it
will be much easier.

Yes, it is the practical solution.

Thanks

Kazu