[rt-users] Suppressing RT System itself entries in Ticket History

ktm at rice.edu ktm at rice.edu
Fri Feb 22 19:03:57 EST 2013


On Fri, Feb 22, 2013 at 09:04:20PM +0000, Raymond Corbett wrote:
> Is there a way to suppress the display of the "RT System itself" entries in Ticket Display?
> 
> The ones such as    The RT System itself - Outgoing email recorded
> 
> 

Hi Ray,

We use something like this for RT 3.8.1x:

/opt/rt3> diff local/html/Ticket/Elements/ShowHistory share/html/Ticket/Elements/ShowHistory
87,90d86
< my $trans_content = {};
< map { $trans_content->{$_->TransactionId}->{$_->Id} = $_  } @attachment_content;
< my $trans_attachments = {};
< map { push (@{$trans_attachments->{$_->TransactionId}}, $_) } @attachments;
102,106d97
<     my $trans_creator = $Transaction->Creator;
<     my $trans_type = $Transaction->Type;
<     next if ( $trans_creator == 1 and $ShowHeaders != 1 and $trans_type ne "Create" );	# RT_System
<     next if ( $trans_creator == 96711 and $ShowHeaders != 1 );				# escalate
< 
108a100,105
>     my @trans_attachments = grep { $_->TransactionId == $Transaction->Id } @attachments;
> 
>     my $trans_content = {};
>     grep { ($_->TransactionId == $Transaction->Id ) && ($trans_content->{$_->Id} = $_)  } @attachment_content;
> 
>    
124c121
<               Attachments          => $trans_attachments->{$Transaction->id},
---
>               Attachments          => \@trans_attachments,


You should be able to adjust this for your needs.

Cheers,
Ken



More information about the rt-users mailing list