<p>Create takes content as MIME::Entity object. Steal examples from Comment and/or MakeMimeEntity functions.<br></p>
<p>Ruslan from phone.</p>
<div class="gmail_quote">24.04.2012 22:42 пользователь "Paul Tomblin" <<a href="mailto:ptomblin@xcski.com">ptomblin@xcski.com</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
When I'm creating a ticket with RT::Ticket api, how do I set the text that goes into the box that says ""Describe the Issue below"?  It appears to end up as an attachment, and I can retrieve it from an existing ticket using <div>

<br clear="all"><div><div>my $attachments = RT::Attachments->new(RT->SystemUser);</div><div>$attachments->LimitByTicket($tik->id);</div><div><br></div><div>foreach my $type (qw(Create Comment Correspond)) {</div>

<div><span style="white-space:pre-wrap">  </span>$attachments->Limit( ALIAS    => $attachments->TransactionAlias,</div><div><span style="white-space:pre-wrap">                                              </span> FIELD    => 'Type',</div>
<div><span style="white-space:pre-wrap">                                          </span> OPERATOR => '=',</div><div><span style="white-space:pre-wrap">                                             </span> VALUE    => $type,</div><div><span style="white-space:pre-wrap">                                         </span> ENTRYAGGREGATOR => 'OR',</div>

<div><span style="white-space:pre-wrap">                                          </span> CASESENSITIVE   => 1</div><div><span style="white-space:pre-wrap">                                        </span>   );</div><div>}</div></div><div><br></div><div>I tried adding it with $ticket->_CreateNote, but then I end up with two "The RT System itself - Ticket created" records.</div>

<div><br></div>-- <br><a href="http://www.linkedin.com/in/paultomblin" target="_blank">http://www.linkedin.com/in/paultomblin</a><br><a href="http://careers.stackoverflow.com/ptomblin" target="_blank">http://careers.stackoverflow.com/ptomblin</a><br>
<br>

</div>
</blockquote></div>