[rt-users] The use of $Ticket{'TOP'}->CustomFieldValues($fieldname) with RT::Action::CreateTickets
Landon Stewart
lstewart at iweb.com
Tue Mar 10 12:02:52 EDT 2015
On Mar 10, 2015, at 3:28 AM, Christian Loos <cloos at netcologne.de> wrote:
>
> @Alex:
> CreateTickets support both, CustomField and CF keys [1].
>
> @Landon:
> Why don't you simply add this lines to you template, as you are using a
> static customfield list and don't want to add all customfields (assuming
> you customfields are single value fields):
>
> CF-Customfield1: {$Tickets{'TOP'}->FirstCustomFieldValue('Customfield1')}
> CF-Customfield2: {$Tickets{'TOP'}->FirstCustomFieldValue('Customfield2')}
> CF-etc: {$Ticket{'TOP'}->FirstCustomFieldValue('etc')}
The problem with using FirstCustomFieldValue() is that I'd, of course, only get the first value for each CF but I want all the values for each CF to be copied over.
Landon Stewart : lstewart at iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com : +1 (888) 909-4932
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150310/66b3ab2d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150310/66b3ab2d/attachment.sig>
More information about the rt-users
mailing list