[rt-users] Copy Multiple value CF to the child ticket
Kevin Falcone
falcone at bestpractical.com
Fri Jan 7 09:44:26 EST 2011
On Thu, Jan 06, 2011 at 02:04:41PM -0500, Ahmed, Mohammed Naweed (LNG-BCT) wrote:
>
> I am using version 3.8.4 so CustomFieldValuesAsString is not available.
>
> I changed the template like this:
> CustomField-n: {
> my $separator = "\n";
> my $CFValue = $Tickets{'TOP'}->CustomFieldValues(n);
> return join ($separator, grep { defined $_ }
> map { $_->Content }
> @{$CFValue->ItemsArrayRef});
> }
>
> To get the values as strings but it still not working, Am I doing
> something wrong or is there any extension available for
> 'CustomFieldValuesAsString' method?
You could define it in a local .pm adding it into the Record, or you
could play around with warning to make sure you get the right data.
I'm not sure that return'ing in a template does what you really want.
-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110107/69c9a4d5/attachment.sig>
More information about the rt-users
mailing list