Stick with text. If you hack RT to export ticket history ( I have ) you will quickly run into excel size limits, such as the number of characters that can be stored in a cell.<br><br>Here's how I hacked RT so that I could get ticket history in search results so that they could be exported:
<br><br>In /opt/rt3/local/html/Callbacks/myCompnay/Elements/RT__Ticket/ColumnMap/ColumnMap:<br><br>$COLUMN_MAP->{AllCorrespondence} = {<br> title => 'All Correspondence',<br> attribute => 'AllCorrespondence',
<br> value => sub { return $_[0]->AllCorrespondence },<br>};<br><br>In Ticket_Local.pm:<br><br>sub AllCorrespondenceTransactions {<br><br> my $self = shift;<br> my $role = shift;<br><br> my $transactions = $self->Transactions;
<br> $transactions->Limit( SUBCLAUSE => 'type', FIELD => 'Type', VALUE => 'Create' );<br> $transactions->Limit( SUBCLAUSE => 'type', FIELD => 'Type', VALUE => 'Correspond', ENTRYAGGREGATOR => 'OR' );
<br><br> if ( $role eq 'Requestor' ) {<br> my $requestor_group = $self->Requestors;<br> my $users = $requestor_group->UserMembersObj;<br> while ( my $user = $users->Next ) {<br> $transactions->Limit( SUBCLAUSE => 'requestors', FIELD => 'Creator',
<br> VALUE => $user->PrincipalId, ENTRYAGGREGATOR => 'OR' );<br> }<br> }<br> elsif ( $role eq 'Owner' ) {<br> $transactions->Limit( FIELD => 'Creator', VALUE => $self->OwnerObj->PrincipalId, ENTRYAGGREGATOR => 'AND' );
<br> }<br><br> return $transactions;;<br><br>}<br><br>sub AllCorrespondence {<br><br> my $self = shift;<br> my $role = shift;<br><br> my $transactions = $self->AllCorrespondenceTransactions($role);<br><br>
my $string = '';<br><br> while ( my $t = $transactions->Next ) {<br> $string .= "\n\n" . formatted($t);<br> }<br><br> return $string;<br><br>}<br><br>sub formatted {<br><br> my $transaction = shift;
<br> return '' unless $transaction;<br><br> my $string = '###### On ' . $transaction->CreatedObj->AsString . ' ' . $transaction->CreatorObj->EmailAddress . " wrote:\n\n";
<br> $string .= $transaction->Content;<br><br> return $string;<br><br>}<br><br>-Todd<br><br><br><div><span class="gmail_quote">On 1/10/08, <b class="gmail_sendername">Prasad Deshpande</b> <<a href="mailto:prasaddeshpande@bajajfinance.in">
prasaddeshpande@bajajfinance.in</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>We are using RT 3.2.3 on Red Hat 9. We would like export the existing
<br>data in a text or excel file. To do this, we have tried using the Query<br>builder. We are able to export the data but we could not find the field<br>to export ticket history ( ie. communication captured during the life
<br>cycle of the ticket).<br><br>If somebody knows how to capture the ticket history then please let me<br>know.<br><br>Thanks in Advance<br><br>Regards,<br>Regards,<br>Prasad Deshpande<br>IT Department<br>Phone: +91 20 27407157
<br>Ext: 7157<br><br><br><br>DISCLAIMER:<br>This message,including any attachments contains confidential and privileged information for the sole use of the intended recipient(s), and is protected by law. If you are not the intended recipient, please destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
<br>Bajaj Auto reserves the right to record, monitor, and inspect all email communications through its internal and external networks. Your messages shall be subject to such lawful supervision as Bajaj Auto deems necessary in order to protect its information, interests and reputation. Bajaj Auto prohibits and takes steps to prevent its information systems from being used to view, store or forward offensive or discriminatory material. If this message contains such material, please report it to
<a href="mailto:abuse@bajajauto.co.in">abuse@bajajauto.co.in</a>.<br>_______________________________________________<br><a href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
</a><br><br>Community help: <a href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a><br>Commercial support: <a href="mailto:sales@bestpractical.com">sales@bestpractical.com</a><br><br><br>Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
<br>Buy a copy at <a href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a><br></blockquote></div><br>