Hi all,
I have spent many hours today to find a solution to my problem, I will VERY
much appriciate any help here.
I have a CF Applies to “Ticket Transaction” called "SendResolutionMail"
which is select one value type.
I can’t get the CF Value out of it if it applies to “Ticket Transaction” BUT
I can get it if the CF applies to “ticket”.
I have tried many suggested ways to implement it which I found in the net.
but none of them solved it for me.
I have the following scrip and the Logger output is empty when I use
$Ticket->FirstCustomFieldValue. I can’t get the CF Value out of it…
Please help
{ ### True when transaction is incoming email and CF ‘noemail’ is not set
my $Transaction = $self->TransactionObj;
my $Ticket = $self->TicketObj;
my $val = $Transaction->Type eq ‘Status’
&& $Transaction->NewValue eq ‘resolved’
&& get_custom(“SendResolutionMail”);
return $val;
Returns custom field value
get_custom($field_name)
sub get_custom {
my $target_name = $_[0];
my $val = $Ticket->FirstCustomFieldValue($target_name);
$RT::Logger->warning("$val"); # Logger output - RT: ((eval 1182):14)
return $val if defined $val;
return undef;
}
}
Hi again, sending issues on Sunday usually get losts, I am resending my
issue below, kindly asks for assistance here :)On Sun, Nov 9, 2008 at 7:29 PM, Monti gmail monti.mail@gmail.com wrote:
Hi all,
I have spent many hours today to find a solution to my problem, I will VERY
much appriciate any help here.
I have a CF Applies to “Ticket Transaction” called “SendResolutionMail”
which is select one value type.
I can’t get the CF Value out of it if it applies to “Ticket Transaction”
BUT I can get it if the CF applies to “ticket”.
I have tried many suggested ways to implement it which I found in the net.
but none of them solved it for me.
I have the following scrip and the Logger output is empty when I use
$Ticket->FirstCustomFieldValue. I can’t get the CF Value out of it…
Please help
{ ### True when transaction is incoming email and CF ‘noemail’ is not set
my $Transaction = $self->TransactionObj;
my $Ticket = $self->TicketObj;
my $val = $Transaction->Type eq ‘Status’
&& $Transaction->NewValue eq ‘resolved’
&& get_custom(“SendResolutionMail”);
return $val;
Returns custom field value
get_custom($field_name)
sub get_custom {
my $target_name = $_[0];
my $val = $Ticket->FirstCustomFieldValue($target_name);
$RT::Logger->warning(“$val”); # Logger output - RT: ((eval 1182):14)
return $val if defined $val;
return undef;
}
}
Sorry to nag again but I am lost here and stuck…
Can someone tell me how can I get the value of a “ticket transaction” Custom
Field?
I tried with FirstCustomFieldValue but it works only if it is a “Ticket”
CF…
thanks a lot.On Sun, Nov 9, 2008 at 7:29 PM, Monti gmail monti.mail@gmail.com wrote:
Hi all,
I have spent many hours today to find a solution to my problem, I will VERY
much appriciate any help here.
I have a CF Applies to “Ticket Transaction” called “SendResolutionMail”
which is select one value type.
I can’t get the CF Value out of it if it applies to “Ticket Transaction”
BUT I can get it if the CF applies to “ticket”.
I have tried many suggested ways to implement it which I found in the net.
but none of them solved it for me.
I have the following scrip and the Logger output is empty when I use
$Ticket->FirstCustomFieldValue. I can’t get the CF Value out of it…
Please help
{ ### True when transaction is incoming email and CF ‘noemail’ is not set
my $Transaction = $self->TransactionObj;
my $Ticket = $self->TicketObj;
my $val = $Transaction->Type eq ‘Status’
&& $Transaction->NewValue eq ‘resolved’
&& get_custom(“SendResolutionMail”);
return $val;
Returns custom field value
get_custom($field_name)
sub get_custom {
my $target_name = $_[0];
my $val = $Ticket->FirstCustomFieldValue($target_name);
$RT::Logger->warning(“$val”); # Logger output - RT: ((eval 1182):14)
return $val if defined $val;
return undef;
}
}
I am trying one more time, sorry for spamming your mail.
I am still stuck and waiting for someone who knows how to get CF value out
when using CF type “Ticket Transaction”.
thanks,On Tue, Nov 11, 2008 at 10:13 PM, Monti gmail monti.mail@gmail.com wrote:
Sorry to nag again but I am lost here and stuck…
Can someone tell me how can I get the value of a “ticket transaction”
Custom Field?
I tried with FirstCustomFieldValue but it works only if it is a “Ticket”
CF…
thanks a lot.
On Sun, Nov 9, 2008 at 7:29 PM, Monti gmail monti.mail@gmail.com wrote:
Hi all,
I have spent many hours today to find a solution to my problem, I will
VERY much appriciate any help here.
I have a CF Applies to “Ticket Transaction” called “SendResolutionMail”
which is select one value type.
I can’t get the CF Value out of it if it applies to “Ticket Transaction”
BUT I can get it if the CF applies to “ticket”.
I have tried many suggested ways to implement it which I found in the net.
but none of them solved it for me.
I have the following scrip and the Logger output is empty when I use
$Ticket->FirstCustomFieldValue. I can’t get the CF Value out of it…
Please help
{ ### True when transaction is incoming email and CF ‘noemail’ is not set
my $Transaction = $self->TransactionObj;
my $Ticket = $self->TicketObj;
my $val = $Transaction->Type eq ‘Status’
&& $Transaction->NewValue eq ‘resolved’
&& get_custom(“SendResolutionMail”);
return $val;
Returns custom field value
get_custom($field_name)
sub get_custom {
my $target_name = $_[0];
my $val = $Ticket->FirstCustomFieldValue($target_name);
$RT::Logger->warning(“$val”); # Logger output - RT: ((eval 1182):14)
return $val if defined $val;
return undef;
}
}
I am trying one more time, sorry for spamming your mail.
I am still stuck and waiting for someone who knows how to get CF
value out when using CF type “Ticket Transaction”.
Have you called FirstCustomFieldValue on a Transaction object (since
this Custom
Field applies to Transactions and not Tickets)?
-kevin> On Tue, Nov 11, 2008 at 10:13 PM, Monti gmail monti.mail@gmail.com wrote:
Sorry to nag again but I am lost here and stuck…
Can someone tell me how can I get the value of a “ticket
transaction” Custom Field?
I tried with FirstCustomFieldValue but it works only if it is a
“Ticket” CF…
thanks a lot.
On Sun, Nov 9, 2008 at 7:29 PM, Monti gmail monti.mail@gmail.com wrote:
Hi all,
I have spent many hours today to find a solution to my problem, I
will VERY much appriciate any help here.
I have a CF Applies to “Ticket Transaction” called
“SendResolutionMail” which is select one value type.
I can’t get the CF Value out of it if it applies to “Ticket
Transaction” BUT I can get it if the CF applies to “ticket”.
I have tried many suggested ways to implement it which I found in
the net. but none of them solved it for me.
I have the following scrip and the Logger output is empty when I use
$Ticket->FirstCustomFieldValue. I can’t get the CF Value out of it…
Please help
{ ### True when transaction is incoming email and CF ‘noemail’ is
not set
my $Transaction = $self->TransactionObj;
my $Ticket = $self->TicketObj;
my $val = $Transaction->Type eq ‘Status’
&& $Transaction->NewValue eq ‘resolved’
&& get_custom(“SendResolutionMail”);
return $val;
Returns custom field value
get_custom($field_name)
sub get_custom {
my $target_name = $_[0];
my $val = $Ticket->FirstCustomFieldValue($target_name);
$RT::Logger->warning(“$val”); # Logger output - RT: ((eval 1182):14)
return $val if defined $val;
return undef;
}
}
The rt-users Archives
Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
Hi Kevin, thanks for replying.
Yes I did try replacing " my $val =
$Ticket->FirstCustomFieldValue("$target_name");“
to my $val = $Transaction->FirstCustomFieldValue(”$target_name");
where:
my $Transaction = $self->TransactionObj;
my $Ticket = $self->TicketObj;
but still, the value is empty.
Guys, I’m desperately looking for a solution.
How can I ready a CF value of a transaction type CF?On Sat, Nov 15, 2008 at 10:27 PM, Monti gmail monti.mail@gmail.com wrote:
Hi Kevin, thanks for replying.
Yes I did try replacing " my $val =
$Ticket->FirstCustomFieldValue(“$target_name”);"
to my $val = $Transaction->FirstCustomFieldValue(“$target_name”);
where:
my $Transaction = $self->TransactionObj;
my $Ticket = $self->TicketObj;
but still, the value is empty.
Have you called FirstCustomFieldValue on a Transaction object (since
this Custom
Field applies to Transactions and not Tickets)?
-kevin