<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal">Hi All,</p><p class="MsoNormal"> </p><p class="MsoNormal">In Search/Results.rdf, I’d like to modify the line below marked with >>>>>:</p>
<p class="MsoNormal"> </p><p class="MsoNormal"><span style="font-family:"Courier New""> while ( my $Ticket = $Tickets->Next()) {</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> my $creator_str = $m->scomp('/Elements/ShowUser', User => $Ticket->CreatorObj);</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> $creator_str =~ s/[\r\n]//g;</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> $rss->add_item(</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> title => $Ticket->Subject || loc('No Subject'),</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> link => RT->Config->Get('WebURL')."Ticket/Display.html?id=".$Ticket->id,</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New"">>>>>> description => $Ticket->Transactions->First->Content,</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> dc => { creator => $creator_str,</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> date => $Ticket->CreatedObj->RFC2822,</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> },</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> guid => $Ticket->Queue . '_' . $Ticket->id,</span></p><p class="MsoNormal"><span style="font-family:"Courier New""> );</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""> }</span></p><p class="MsoNormal"> </p><p class="MsoNormal">What I’m hoping to see in the RSS is either the last Correspondence or Comment in the ticket, or the Create statement if it is new. I can change the command to <span style="font-family:"Courier New"">$Ticket->Transactions->Last->Content</span> but it will simply print out “This transaction appears to have no content” if the last action was something like an ownership change.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">I believe what I ultimately want to do is show the Content for the last Transaction where the Type is either Correspond, Comment or Create. Any documentation pointers or code snippets that will help get me there are appreciated.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thanks!</p><p class="MsoNormal"> </p><p class="MsoNormal">--drew</p><p class="MsoNormal"> </p></div></body></html>