I am trying to add new column to linked tickets table that is displayed in agent ticket zoom. I managed to identify that table is created by Layoutlinkobject.pm. What I would like to add is last date of change in linked tickets. I copied column Linked as to create new column, but I am sort of clueless on how to change this code to display change data of tickets.
Code: Select all
# add "changed" column to the table
for my $Block (@OutputData) {
# define the headline column
my $Column = {
Content => 'Changed',
};
# add new column to the headline
push @{ $Block->{Headline} }, $Column;
for my $Item ( @{ $Block->{ItemList} } ) {
# define checkbox cell
my $CheckboxCell = {
Type => 'LinkTypeList',
Content => '',
LinkTypeList => $LinkList{ $Block->{Object} }->{ $Item->[0]->{Key} },
Translate => 1,
};
# add checkbox cell to item
push @{$Item}, $CheckboxCell;
}
}