Re: [rt-users] Disabling autoreplies for just one queue

2006-12-26 Thread Rick Russell
You have to replace the default autoreply scrip with a new scrip with a custom condition like so: my $Ticket = $self->TicketObj; my $Transaction = $self->TransactionObj; if ( ($Transaction -> Type eq 'Create') && !($Ticket->Queue eq '55') && !($Ticket->Queue eq '65')

Re: [rt-users] Order of actions on ticket

2006-12-26 Thread Rick Russell
Odhiambo Washington wrote: Why do you think RT should be able to read your mind? It follows the order of events, but cannot contemplate that order. That is a very eloquent way to put it :-) In response to the original poster, you could experiment with TransactionBatch mode and your "On Corr

Re: [rt-users] Using custom conditions with custom fields

2006-12-24 Thread Rick Russell
Tim Wilson wrote: Thanks for the help. That makes sense to me except for one thing. I'm not sure where the $my_id comes from. It's the numerical ID of the custom field. As a superuser, go to Configuration, Custom Fields and open the Foo custom field. Then look at the URL in your web browse

Re: [rt-users] Tickets private to the owner & requestor

2006-11-02 Thread Rick Russell
Changing ownership is a right associated with ModifyTicket, which requires ShowTicket to be useful. You could do it with queue rights; give somebody ShowTicket & ModifyTicket on a Queue (call it "incoming" or something), then they can assign the owner and move the ticket to a new queue where

Re: [rt-users] due date in business hours

2006-10-20 Thread Rick Russell
Judson Main wrote: Is anyone using this under 3.6.1? I've been noddling with it for a week and can't get it to work. I've got custom scrips in RT 3.4 that use Jesse Vincent's Business::Hours module to compute a due date. Is that what you mean? Rick R. _

Re: [rt-users] Reply to closed ticket should open a new one

2006-08-22 Thread Rick Russell
Not to mention all the tickets you'll with content like "thank you" and "why are you sending me mail again?" and "please stop sending me mail I don't want another ticket!" Rick R. Roy El-Hames wrote: By creating a new ticket you are duplicating data, also the staff will most likely have to

Re: [rt-users] ticket/transaction object model

2006-07-14 Thread Rick Russell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Now I?ve hit a problem, I want to display a property that I haven?t seen > anywhere else (the name of the person who sent the replay on the > ticket). Is there anywhere that will tell me the objects/properties of Assuming that the reply is the cur

[rt-users] Scrip optimization to improve speed

2006-07-13 Thread Rick Russell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everybody. This question can probably only be answered by a true RT guru. So, step up and prove yourself! I dare you! We've got an RT 3.4.5 install (probably to move to 3.6 soon) that is getting slower and slower for any transaction that involves

Re: [rt-users] detail reports

2006-06-08 Thread Rick Russell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The rt list and rt show command-line functions can probably give you want you need. Type "rt help" at your server command line for more. Rick R. David Smithson wrote: > Perhaps I should explain myself better. You can get a summary report f

Re: [rt-users] How to add requestor name in Templates?

2006-06-01 Thread Rick Russell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tomasz Wlodek wrote: > But Now I would like to see requestors real name. How do I do this? > > This must be a very simple, some line > > Requestor name - {$Ticket->} Requestor name - {$Ticket->Requestors->UsersObj->First->RealName} If th

[rt-users] Extracting group members from rt command line

2006-05-24 Thread Rick Russell
Hey all, I'm trying to develop a report for my department that shows which tickets were worked by each of our IT staff members. I've got a group with all the IT staff members in it. I want to extract that list so I can then grep the ticket histories. The problem is, the rt command line won't giv

Re: [rt-users] CustomField is deleted automatically after modified by a scrip

2006-05-15 Thread Rick Russell
David Di wrote: > But in this case how can I set a CF's value as the purpose of a scrip is > to do the job without manual intervention. Two options: (1) Set the rights on the Custom Field so that the user cannot manually modify it. (2) Set the scrip execution to "TransactionBatch", which shou

Re: [rt-users] Message could not be recorded

2006-04-28 Thread Rick Russell
Jesse Vincent wrote: > getting to a queue they don't have permissions to or something? (That > looks really broken). Show us the message the user sends in? I can verify that "Message not recorded" is the error you get if you do not have permission to Reply to a ticket. Make sure that Requestor

Re: [rt-users] time-based Admincc: changes per queue?

2006-04-28 Thread Rick Russell
brian mccabe wrote: > Does anyone have a neat way of changing the AdminCC:'s > on a queue dynamically, based on the day and time of > day? I can think of a few ways to do it. The AdminCC watcher list for a Queue can be modified by scrips. So you could have a script that does the following. --

Re: [rt-users] Users being logged out.

2006-04-28 Thread Rick Russell
Are you waiting long enough for the entire page to load? The pages sets an authentication cookie; if the page doesn't completely load, the auth cookie isn't set correctly and you're not authenticated. The authentication is strictly cookie based, so there's no issue with apache sessions or anythin

Re: [rt-users] Detecting "new" ticket in a template

2006-04-27 Thread Rick Russell
Samuel P. Howard wrote: > Any suggestions or code fragments? Template code: Subject: {$Ticket->Subject} { if ( ($Ticket->Status eq 'new') || ($Ticket->Status eq 'open') || ($Ticket->Status eq 'stalled') ) { $OUT .= "Thank you for submitting a request regarding blah blah blah yada yada yad

Re: [rt-users] Business Hours Alerts

2006-04-20 Thread Rick Russell
The best way is to use Jesse Vincent's Business::Hours module to set up a business hours schedule, then use the methods (like first_after) to quickly determine whether the current time is in the business hours schedule. http://search.cpan.org/~jesse/Business-Hours-0.07/lib/Business/Hours.pm

Re: [rt-users] custom scrip help - mail to GROUP

2006-04-20 Thread Rick Russell
All the solutions presented so far seem WAY too complicated. It's really easy, and requires no custom programming. (1) Set up groups of privileged RT users in Configuration, Groups for each of the work groups in your organization. The nice thing about making the groups now is that you can levera

Re: [rt-users] Script to build timeworked report based on CustomField

2006-04-18 Thread Rick Russell
Jesse Vincent wrote: > On Wed, Apr 05, 2006 at 03:32:12PM -0500, Rick Russell wrote: >> Jason Fenner wrote: >>> use POSIX(strftime); >> Be careful! RT uses a default PERL package called CTime that includes >> its own versions of strftime, localtime, etc. >