Re: [rt-users] Problem with making a custom scrip

2011-07-27 Thread Bart
Hi, I've finished the scrip with my initial purpose, which was to set the ticket type (incident, problem or change) along with the priority (1 to 5) and based on those two values set the SLA field (from the SLA plugin/addon). The result is listed below, this basically does the following: -

Re: [rt-users] Problem with making a custom scrip

2011-07-27 Thread Ruslan Zakirov
On Wed, Jul 27, 2011 at 11:59 AM, Bart b...@pleh.info wrote: I've finished the scrip with my initial purpose, which was to set the ticket type (incident, problem or change) along with the priority (1 to 5) and based on those two values set the SLA field (from the SLA plugin/addon). The result

[rt-users] Problem with making a custom scrip

2011-07-26 Thread Bart
Hi, I'm currently working on making a scrip for RT4 which should eventually allow us to do the following: - User fills in the CF ticket type: Incident, Problem or Change. - User fills in the CF priority: 1, 2, 3 or 4. (in this setup we chose to make this a CF so that we can restrict the

Re: [rt-users] Problem with making a custom scrip

2011-07-26 Thread Robert Wysocki
Dnia 2011-07-26, wto o godzinie 10:22 +0200, Bart pisze: (...) my $my_type = $self-TicketObj-CustomFieldValues('Type'); Use $self-TicketObj-FirstCustomFieldValue('Type') instead. Regards, -- Robert Wysocki CONTIUM S.A., http://www.contium.pl 2011 Training:

Re: [rt-users] Problem with making a custom scrip

2011-07-26 Thread Bart
Hi Robert, Thanks for the reply, I've changed that setting but it doesn't seem to fully solve my problem (I do notice a difference). I've modified the scrip a little, it now looks like this: my $my_type = $self-TicketObj-FirstCustomFieldValue('Type'); if ($my_type =~ /^I/) {

Re: [rt-users] Problem with making a custom scrip

2011-07-26 Thread Raphaël MOUNEYRES
= 'Urgent'); } Raphaël MOUNEYRES Bart b...@pleh.info Envoyé par : rt-users-boun...@lists.bestpractical.com 26/07/2011 14:41 A rt-users@lists.bestpractical.com cc Objet Re: [rt-users] Problem with making a custom scrip Hi Robert, Thanks for the reply, I've changed that setting

Re: [rt-users] Problem with making a custom scrip

2011-07-26 Thread Bart
A rt-users@lists.bestpractical.com cc Objet Re: [rt-users] Problem with making a custom scrip Hi Robert, Thanks for the reply, I've changed that setting but it doesn't seem to fully solve my problem (I do notice a difference). I've modified the scrip a little, it now looks like

Re: [rt-users] Problem with making a custom scrip

2011-07-26 Thread Kevin Falcone
On Tue, Jul 26, 2011 at 02:40:21PM +0200, Bart wrote: The first problem I have is that the SLA is already set to the value Normal, I see the scrip running but it keeps saying Set SLA Low to Normal or similar for Urgent (normal is ignored). So I get a feeling it does something, but