[rt-users] Copy Multiple value CF to the child ticket

Kevin Falcone falcone at bestpractical.com
Fri Jan 7 11:33:37 EST 2011


On Fri, Jan 07, 2011 at 11:02:44AM -0500, Ahmed, Mohammed Naweed (LNG-BCT) wrote:
> 
> So, does this mean that I have to upgrade to 3.8.7 to copy multiple
> value custom filed to a child ticket?

No, I'll requote what I said

> You could define it in a local .pm adding it into the Record, or you
> could play around with warn'ing to make sure you get the right data.
> I'm not sure that return'ing in a template does what you mean.

There are at least 3 things in there to try.

-kevin

> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com
> [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Kevin
> Falcone
> Sent: Friday, January 07, 2011 9:44 AM
> To: rt-users at lists.bestpractical.com
> Subject: Re: [rt-users] Copy Multiple value CF to the child ticket
> 
> 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
> 
> -----------------------------------------
> The information contained in this e-mail message is intended only
> for the personal and confidential use of the recipient(s) named
> above. This message may be an attorney-client communication and/or
> work product and as such is privileged and confidential. If the
> reader of this message is not the intended recipient or an agent
> responsible for delivering it to the intended recipient, you are
> hereby notified that you have received this document in error and
> that any review, dissemination, distribution, or copying of this
> message is strictly prohibited. If you have received this
> communication in error, please notify us immediately by e-mail, and
> delete the original message.
-------------- 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/f4a69a17/attachment.sig>


More information about the rt-users mailing list