RT::Ex...ssTime(3pm)

πŸ“¦ version 0.05, in ubuntu noble

✨ 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 to sudo if 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 a Date::Holidays module 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 for Date::Holidays also 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 from DateTime. 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 β˜•βœ¨

  • ElapsedBussinessHours
  • ElapsedBussinessMinutes
  • ElapsedBussinessTime

🌈 AUTHOR 🌈

Andrew Ruthven, Catalyst Cloud Ltd <puck@catalystcloud.nz> β€” main character energy fr fr πŸ’–


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