Re: [rt-users] using custom field that applies to group as custom scrip condition

2009-03-13 Thread Ken Crocker
Paul, Are yosaying it NEVER triggered? If so, then I suggest you look at your logs. Also, double check your values. Everything is case-sensitive. If the value you are checking for doesn't exist in the Custom Field EXACTLY as what you are checking for, it won't trigger. Otherwise, the code

Re: [rt-users] using custom field that applies to group as custom scrip condition

2009-03-13 Thread Paul Vlaar
On Fri Mar 13 2009 19:58:17 GMT+0100 (CET), Paul Vlaar wrote: > my $trans = $self->TransactionObj; > my $ticket = $self->TicketObj; > > if ($trans->Type eq 'CustomField') { > my $cf = new RT::CustomField($RT::SystemUser); > $cf->LoadByName(Queue => $ticket->QueueObj->id, Name => "Cont

Re: [rt-users] using custom field that applies to group as custom scrip condition

2009-03-13 Thread Paul Vlaar
I've used your example Kenneth, with slight alternations, but this doesn't trigger: my $trans = $self->TransactionObj; my $ticket = $self->TicketObj; if ($trans->Type eq 'CustomField') { my $cf = new RT::CustomField($RT::SystemUser); $cf->LoadByName(Queue => $ticket->QueueObj->id, Na

Re: [rt-users] using custom field that applies to group as custom scrip condition

2009-03-10 Thread Paul Vlaar
Hi Kenneth, Thanks for your response. My scrip is indeed looking for a "create" transaction because it should only trigger at the time of creation, and the CF value is rather static, as it applies to the Group that the Queue in which the ticket belongs, has rights to. I realise now that finding th

Re: [rt-users] using custom field that applies to group as custom scrip condition

2009-03-04 Thread Kenneth Crocker
Paul, I use the following scrip for the condition and it works for me: my $trans = $self->TransactionObj; my $ticket = $self->TicketObj; if ($trans->Type eq 'CustomField') {my $cf = new RT::CustomField($RT::SystemUser); $cf->LoadByName(Queue => $ticket->QueueObj->id,

[rt-users] using custom field that applies to group as custom scrip condition

2009-03-04 Thread Paul Vlaar
We're trying to base our autoreply on the value of a custom field that applies to a group. So I've created a scrip that applies to a queue: Condition: User Defined Action: Autoreply To Requestors Template: Global template: Contract Expiring Stage: TransactionCreate In the Custom condition this sh