Re: Populating Custom Fields via Template

Jannae Jacks <[email protected]> Sat, 19 Mar 2016 17:09:33 -0400
Newsgroups gmane.comp.bug-tracking.request-tracker.devel
Message-ID <CAHYk17Gxe_hzZ5uBEX3iON5AnaDQL_05UMjJGpKcBuo075ZkQg@mail.gmail.com>
--===============0215955435==
Content-Type: multipart/alternative; boundary=001a1137b81ce52276052e6d48b7

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

And I just re-read the documentation and figured it out. :) So, nevermind!

FYI, if anyone is still struggling with this silently, custom fields are
available as part of the "create ticket" action.

https://docs.bestpractical.com/rt/4.4.0/RT/Action/CreateTickets.html

All you need to do is say:

CF-name of your field: something something

And it works like a charm.

On Sat, Mar 19, 2016 at 4:34 PM, Jannae Jacks <[email protected]> wrote:

> Any ideas on this? Appreciate any assistance, including other ideas if
> this is not possible.
>
> Thanks!
>
> On Fri, Mar 11, 2016 at 4:43 PM, Jannae Jacks <[email protected]> wrote:
>
>> 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
>>
>
>
>
> --
> 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
>



-- 
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

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

<div dir=3D"ltr">And I just re-read the documentation and figured it out. :=
) So, nevermind!<div><br></div><div>FYI, if anyone is still struggling with=
 this silently, custom fields are available as part of the &quot;create tic=
ket&quot; action.=C2=A0</div><div><br></div><div><a href=3D"https://docs.be=
stpractical.com/rt/4.4.0/RT/Action/CreateTickets.html" target=3D"_blank">ht=
tps://docs.bestpractical.com/rt/4.4.0/RT/Action/CreateTickets.html</a><br><=
/div><div><br></div><div>All you need to do is say:</div><div><br></div><di=
v>CF-name of your field: something something</div><div><br></div><div>And i=
t works like a charm.</div><div class=3D"gmail_extra"><br><div class=3D"gma=
il_quote">On Sat, Mar 19, 2016 at 4:34 PM, Jannae Jacks <span dir=3D"ltr">&=
lt;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Any ide=
as on this? Appreciate any assistance, including other ideas if this is not=
 possible.<div><br></div><div>Thanks!</div><div><div><div class=3D"gmail_ex=
tra"><br><div class=3D"gmail_quote">On Fri, Mar 11, 2016 at 4:43 PM, Jannae=
 Jacks <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_b=
lank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
"><div dir=3D"ltr"><div class=3D"gmail_extra">Hi all,</div><div class=3D"gm=
ail_extra"><br></div><div class=3D"gmail_extra">I am curious if it is possi=
ble 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 c=
apacity.<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;MyCFie=
ld&#39;, Value =3D&gt; &#39;MyCValue&#39;, RecordTransaction =3D&gt; 1 ); }=
<br></div><div><br></div><div>And neither does this:</div><div><br></div><d=
iv>{ $self -&gt;Ticket-&gt;AddCustomFieldValue(Field =3D&gt; &#39;MyCField&=
#39;, 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><span><font color=3D"#888888"><div><br></div>-- <br><div><div dir=3D=
"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><span style=3D"fon=
t-size:12.8px">Jannae Jacks</span><br style=3D"font-size:12.8px"><span styl=
e=3D"font-size:12.8px">Senior Network Security Analyst, Technology Security=
 Services</span><br style=3D"font-size:12.8px"><span style=3D"font-size:12.=
8px">New York University, Information Technology</span><br style=3D"font-si=
ze:12.8px"><span style=3D"font-size:12.8px">726 Broadway, 2nd Floor, New Yo=
rk, 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>
</font></span></div></div>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div><div di=
r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><span style=3D=
"font-size:12.8000001907349px">Jannae Jacks</span><br style=3D"font-size:12=
.8000001907349px"><span style=3D"font-size:12.8000001907349px">Senior Netwo=
rk Security Analyst, Technology Security Services</span><br style=3D"font-s=
ize:12.8000001907349px"><span style=3D"font-size:12.8000001907349px">New Yo=
rk University, Information Technology</span><br style=3D"font-size:12.80000=
01907349px"><span style=3D"font-size:12.8000001907349px">726 Broadway, 2nd =
Floor, New York, NY 10003</span><br style=3D"font-size:12.8000001907349px">=
<span style=3D"font-size:12.8000001907349px"><a href=3D"http://www.nyu.edu"=
 target=3D"_blank">http://www.nyu.edu</a></span></div></div></div></div></d=
iv>
</div></div></div></div>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div><div di=
r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><span style=3D=
"font-size:12.8000001907349px">Jannae Jacks</span><br style=3D"font-size:12=
.8000001907349px"><span style=3D"font-size:12.8000001907349px">Senior Netwo=
rk Security Analyst, Technology Security Services</span><br style=3D"font-s=
ize:12.8000001907349px"><span style=3D"font-size:12.8000001907349px">New Yo=
rk University, Information Technology</span><br style=3D"font-size:12.80000=
01907349px"><span style=3D"font-size:12.8000001907349px">726 Broadway, 2nd =
Floor, New York, NY 10003</span><br style=3D"font-size:12.8000001907349px">=
<span style=3D"font-size:12.8000001907349px"><a href=3D"http://www.nyu.edu"=
 target=3D"_blank">http://www.nyu.edu<br></a></span></div></div></div></div=
></div>
</div></div>

--001a1137b81ce52276052e6d48b7--

--===============0215955435==
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 https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016

--===============0215955435==--