First what I'm trying to do: I would like to have a new variable in TicketOverviewSmall containing the ticket age based on working hours.
What I found and tried:
I thought that doing this in the Ticket.pm file would be the proper way. The proper use accordingly to what I've found already would be something like this:
my $RealTicketAge = $TimeObject->WorkingTime(
StartTime => $Self->{TimeObject}->SystemTime() - $Ticket{CreateTimeUnix},
StopTime => $TimeObject->SystemTime(),
);
Sadly I don't know yet if this would be working. I already needed quite some time to learn what files are working together and therefore thought that it would be a good idea to extend the TicketGet() method. What I didn't get obviously is which and how the variables for the $Data arrays are filled. I tried to fill variables with $Self->{LayoutObject} as described here in the forum, but wasn't able to call them in the dtl file.
It would be very kind of you if you could provide me some help, if it is a too basic question be assured that I'm sorry. I really tried
