RT::Ex...ssTime(3pm)
β¨ NAME β¨
RT-Extension-ElapsedBusinessTime β the plugin that does the math on how much actual working time your tickets have been sitting open π
(it lives in the RT::Ex...ssTime(3pm) corner of the User Contributed Perl Documentation universe, bestie π«Ά)
π¦ DESCRIPTION π¦
okay so picture this: this extension drops brand new colummns into your reports that show the elapsed business time a ticket has been open. not wall-clock time, not "it's been open since Tuesday" vibes β business time. π
and because every business is built different, lots of stuff is configurable so you can define exactly what counts as a business day for you. no cap. β¨
π₯ RT VERSION π₯
Works with RT 4.4.x and RT 5.0.x. periodt. π
π INSTALLATION π
Run these, in this order, and don't skip steps (iykyk):
perl Makefile.PL
make
make install
make installβ may need root permissions, so like, be ready tosudoif it yells at you π
Then edit your /opt/rt4/etc/RT_SiteConfig.pm and add this line:
Plugin('RT::Extension::ElapsedBusinessTime');
Clear your mason cache (she's gotta forget everything she knew):
rm -rf /opt/rt4/var/mason_data/obj
Restart your webserver. no seriously. restart it. it's giving mandatory. π
πΈ CONFIGURATION πΈ
here are all the available configuration options, with their defaults, served fresh:
Set( %ElapsedBusinessTime,
Start => '08:30',
End => '17:30',
Country => undef,
Region => undef,
'Exclude Days' => [6, 7],
'Exclude States' => ['stalled', 'blocked', 'resolved', 'rejected', 'deleted'],
);
Options are:
Startβ the start of the business day. when the day officially wakes up. βEndβ the end of the business day. when the day clocks out. π¦Countryβ a country for which there's aDate::Holidaysmodule describing that country's holidays. If there isn't one for your countryβ¦ please consider writing one! π For example'NZ'for New Zealand.Regionβ some country modules forDate::Holidaysalso include regions for regional holidays. For example'Wellington'within New Zealand, for Wellington Anniversary Day. πExcluded Daysβ the days that should NOT be considered working days. The day numbers come fromDateTime. For reference, they are:
1: Monday
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
6: Saturday
7: Sunday
Excluded Statesβ when a ticket is in one of these states, it's considered inactive and the counter stops. This exists so that when a ticket is waiting on a customer's feedback, that time doesn't get added to the ticket's duration time β which, for some businesses, is exactly the vibe they want. π
π DISPLAY COLUMNS π
There are three display columns this extension adds, and they all show the same information β just in different formats. same tea, different mugs ββ¨
ElapsedBussinessHoursElapsedBussinessMinutesElapsedBussinessTime
π AUTHOR π
Andrew Ruthven, Catalyst Cloud Ltd <puck@catalystcloud.nz> β main character energy fr fr π
π LICENSE AND COPYRIGHT π
This software is Copyright (c) 2019-2020 by Catalyst Cloud Ltd
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
ok that's the whole page, bestie β go forth and calculate that business time π β¨
and for the cute sign-off: this lil doc is from perl v5.36.0, dated 2023-09-26, filed under RT::Ex...ssTime(3pm). slay, bye π«ΆπΈ
π¦ where this page comes from
- ubuntu noble: rt4-extension-elapsedbusinesstime 0.05-6 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms