I’m trying to make an autoreply trigger by a custom field value that
applies to a Queue, not a ticket, as I want this value to be the same on
all newly created tickets.
This is what I’ve tried so far, but it’s not being triggered:
Condition: User Defined
Action: Autoreply To Requestors
Template: Global Template: Contract Expiring
Stage: TransactionCreate
Custom condition:
if ( $self->TicketObj->FirstCustomFieldValue(‘Contract’) eq “expiring” )
return 1;
} else {
return 0;
}
I’ve also tried:
$self->TicketObj->QueueObj->FirstCustomFieldValue(‘Contract’) eq
"expiring" )
And also:
$self->QueueObj->FirstCustomFieldValue(‘Contract’)
My question is: how do I reference a custom field value that applies to
the Queue that a ticket belongs to?
Thanks,
~paul
Well, it looks like it was just a typo after all (forgot the opening { )
and this code just works:
if ( $self->TicketObj->QueueObj->FirstCustomFieldValue(‘Contract’) eq
“expiring” )
{
return 1;
} else {
return 0;
}On Fri Mar 13 2009 19:30:54 GMT+0100 (CET), Paul Vlaar wrote:
I’m trying to make an autoreply trigger by a custom field value that
applies to a Queue, not a ticket, as I want this value to be the same on
all newly created tickets.
This is what I’ve tried so far, but it’s not being triggered:
Condition: User Defined
Action: Autoreply To Requestors
Template: Global Template: Contract Expiring
Stage: TransactionCreate
Custom condition:
if ( $self->TicketObj->FirstCustomFieldValue(‘Contract’) eq “expiring” )
return 1;
} else {
return 0;
}
Paul_Vlaar@isc.org - ISC Operations - +1 650 423 1349 - PGP 0x294EC062
Paul,
Great. I didn't see that either. Hope it's helpful.
Kenn
LBNLOn 3/13/2009 12:53 PM, Paul Vlaar wrote:
Well, it looks like it was just a typo after all (forgot the opening { )
and this code just works:
if ( $self->TicketObj->QueueObj->FirstCustomFieldValue(‘Contract’) eq
“expiring” )
{
return 1;
} else {
return 0;
}
On Fri Mar 13 2009 19:30:54 GMT+0100 (CET), Paul Vlaar wrote:
I’m trying to make an autoreply trigger by a custom field value that
applies to a Queue, not a ticket, as I want this value to be the same on
all newly created tickets.
This is what I’ve tried so far, but it’s not being triggered:
Condition: User Defined
Action: Autoreply To Requestors
Template: Global Template: Contract Expiring
Stage: TransactionCreate
Custom condition:
if ( $self->TicketObj->FirstCustomFieldValue(‘Contract’) eq “expiring” )
return 1;
} else {
return 0;
}