[rt-users] adding custom filed value to email
Gary & Gina Koteras
koteras at hotmail.com
Thu Mar 27 15:00:24 EDT 2008
Thanks for the info....I'm VERY new to RT....hopefully someday I'll gain enough knowledge to help others out myself...
Gary> Date: Thu, 27 Mar 2008 11:33:31 -0700> To: huws at s2s.ltd.uk; sturner at MIT.EDU> From: gleduc at mail.sdsu.edu> CC: rt-users at lists.bestpractical.com> Subject: Re: [rt-users] adding custom filed value to email> > I cut my teeth on APL and used to spend hours shaving 7 or 8 bytes from the > size of 360 assembly language programs, so I do have an appreciation for > efficient and elegant coding solutions.> > However... several decades later and who-knows-how-many brain cells fewer, > I've found that I spend less time looking up function names and fixing > typos using code like:> > my $custom_field = get_custom("SomeField");> > and> > set_custom("SomeField", $my_val);> > ### I've also developed a new appreciation for comment lines in my old age. :)> > Gene> > At 10:13 AM 3/27/2008, Huw Selley wrote:> > >On 27 Mar 2008, at 16:57, Stephen Turner wrote:> > >> > > Please don't Huw, this has been very entertaining ;)> >> >:)> >> > > How about just> > >> > > return $Ticket->FirstCustomFieldValue($_[0]);> > >> > >> > > or even no subroutine - just use $Ticket->FirstCustomFieldValue($_[0])> >> >If you want to ditch the sub $_[0] will always be undef as there will> >be no @_ (because it's no longer a sub) :)> >In that case (to use it as a one liner) just:> >> >my $custom_field = $Ticket->FirstCustomFieldValue('SomeField');> >> >Huw> > > -- > Gene LeDuc, GSEC> Security Analyst> San Diego State University > > _______________________________________________> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users> > Community help: http://wiki.bestpractical.com> Commercial support: sales at bestpractical.com> > > Discover RT's hidden secrets with RT Essentials from O'Reilly Media. > Buy a copy at http://rtbook.bestpractical.com
_________________________________________________________________
Windows Live Hotmail is giving away Zunes.
http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mobile_Zune_V3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080327/4afff567/attachment.htm>
More information about the rt-users
mailing list