Populating Custom Fields via Template

Jannae Jacks <[email protected]> Fri, 11 Mar 2016 16:43:56 -0500
Newsgroups gmane.comp.bug-tracking.request-tracker.devel
Message-ID <CAHYk17EmWyzp=stsK5W8skVdBB+nz3MEQLri-SAyaV5KFrRSXA@mail.gmail.com>
--===============0682962931==
Content-Type: multipart/alternative; boundary=001a114226881f06d6052dccd5df

--001a114226881f06d6052dccd5df
Content-Type: text/plain; charset=UTF-8

Hi all,

I am curious if it is possible to add custom field values when creating
tickets via templates. I know that the ticket object is available, but it
seems to be in a very limited capacity.

This doesn't seem to work:

{ $Ticket->AddCustomFieldValue(Field => 'MyCField', Value => 'MyCValue',
RecordTransaction => 1 ); }

And neither does this:

{ $self ->Ticket->AddCustomFieldValue(Field => 'MyCField', Value =>
'MyCValue', RecordTransaction => 1 ); }

Any ideas?

Thanks!

-- 
Jannae Jacks
Senior Network Security Analyst, Technology Security Services
New York University, Information Technology
726 Broadway, 2nd Floor, New York, NY 10003
http://www.nyu.edu

--001a114226881f06d6052dccd5df
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra">Hi all,</div><div class=3D"gmai=
l_extra"><br></div><div class=3D"gmail_extra">I am curious if it is possibl=
e to add custom field values when creating tickets via templates. I know th=
at the ticket object is available, but it seems to be in a very limited cap=
acity.<br><br clear=3D"all"><div>This doesn&#39;t seem to work:</div><div><=
br></div><div>{ $Ticket-&gt;AddCustomFieldValue(Field =3D&gt; &#39;MyCField=
&#39;, Value =3D&gt; &#39;MyCValue&#39;, RecordTransaction =3D&gt; 1 ); }<b=
r></div><div><br></div><div>And neither does this:</div><div><br></div><div=
>{ $self -&gt;Ticket-&gt;AddCustomFieldValue(Field =3D&gt; &#39;MyCField&#3=
9;, Value =3D&gt; &#39;MyCValue&#39;, RecordTransaction =3D&gt; 1 ); }<br><=
/div><div><br></div><div>Any ideas?=C2=A0</div><div><br></div><div>Thanks!<=
/div><div><br></div>-- <br><div class=3D"gmail_signature"><div dir=3D"ltr">=
<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><span style=3D"font-size=
:12.8px">Jannae Jacks</span><br style=3D"font-size:12.8px"><span style=3D"f=
ont-size:12.8px">Senior Network Security Analyst, Technology Security Servi=
ces</span><br style=3D"font-size:12.8px"><span style=3D"font-size:12.8px">N=
ew York University, Information Technology</span><br style=3D"font-size:12.=
8px"><span style=3D"font-size:12.8px">726 Broadway, 2nd Floor, New York, NY=
 10003</span><br style=3D"font-size:12.8px"><span style=3D"font-size:12.8px=
"><a href=3D"http://www.nyu.edu" target=3D"_blank">http://www.nyu.edu</a></=
span></div></div></div></div></div>
</div></div>

--001a114226881f06d6052dccd5df--

--===============0682962931==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

---------
RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html)
* Hamburg Germany - March 14 & 15, 2016
* Washington DC - May 23 & 24, 2016
--===============0682962931==--