Linked tickets table

Moderator: crythias

Locked
Atavius
Znuny newbie
Posts: 24
Joined: 10 Oct 2013, 10:49
Znuny Version: 3.3.7

Linked tickets table

Post by Atavius »

Hi,
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;
        }
    } 
Atavius
Znuny newbie
Posts: 24
Joined: 10 Oct 2013, 10:49
Znuny Version: 3.3.7

Re: Linked tickets table

Post by Atavius »

Ok so after some extended searching I found that right file to modify is LinkObjectTicket.pm
From there just define new item column and block data.
Locked