<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Matt<div class=""><br class=""></div><div class="">I appreciate the suggestion however as a non-perl programmer I am not able to transition this to my template </div><div class=""><br class=""></div><div class="">I was hoping to have some command that would replace this line in the template so the child ticket could receive all the values from the parent as I am creating this dynamical via script/template</div><div class=""><br class=""></div><div class="">ITNM-Topic: {$Tickets{'TOP'}->FirstCustomFieldValue('ITNM-Topic’)}</div><div class=""><br class=""></div><div class="">If the code provided does that and my lack of knowledge of this scripting language is the issue please just let me know and I will look into other options</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">Joe</div><div class=""><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div class=""><div class="">Joe Kirby , Assistant Vice President, Business Systems</div><div class="">Division of Information Technology (DoIT) </div><div class="">Support Response - <a href="http://www.umbc.edu/doit" class="">http://www.umbc.edu/doit</a> </div><div class="">Administration 627</div><div class="">Office - 410-455-3020 </div><div class="">Email - <a href="mailto:kirby@umbc.edu" class="">kirby@umbc.edu</a></div></div></div></span></span>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 1, 2015, at 5:35 PM, Matt Zagrabelny <<a href="mailto:mzagrabe@d.umn.edu" class="">mzagrabe@d.umn.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Tue, Dec 1, 2015 at 4:21 PM, Joe Kirby <<a href="mailto:kirby@umbc.edu" class="">kirby@umbc.edu</a>> wrote:<br class=""><blockquote type="cite" class="">I have a need to create a child ticket and pass on the values for a shared<br class="">custom field.<br class=""><br class="">This works fine when passing a field which is limited to 1 value however I<br class="">now have a multi-value custom field and I cannot find any examples of how to<br class="">pass the secondary values if they exist.<br class=""></blockquote><br class="">There are a couple of ways.<br class=""><br class="">1) Use the built-in method.<br class=""><br class="">CustomFieldValuesAsString<br class=""><br class="">more about it can be found in:<br class=""><br class="">lib/RT/Record.pm<br class=""><br class="">2) Have full control over the output.<br class=""><br class="">Here is an example that builds an HTML list:<br class=""><br class="">{<br class=""> my $cf = $Ticket->LoadCustomFieldByIdentifier('Multimedia Hub<br class="">Equipment');<br class=""> my $equipment = $cf->ValuesForObject($Ticket)->ItemsArrayRef;<br class=""><br class=""> $html_equipment = 'No equipment listed.';<br class=""><br class=""> if (@$equipment > 0) {<br class=""> $html_equipment = '<ul>';<br class=""> for my $item (@$equipment) {<br class=""> my $content = $item->Content;<br class=""> RT::Interface::Web::EscapeHTML(\$content);<br class=""> $html_equipment .= '<li>'.$content.'</li>';<br class=""> }<br class=""> $html_equipment .= '</ul>';<br class=""> }<br class=""><br class=""> $html_equipment;<br class=""> }<br class=""><br class="">Cheers,<br class=""><br class="">-m<br class=""></div></div></blockquote></div><br class=""></div></body></html>