RT::Ex...SGantt(3pm)
β¨ RT::Ex...SGantt π
okay bestie, sit down, we're doing the RT::Ex...SGantt(3pm) page from the User Contributed Perl Documentation section and it's literally so good. it's a Perl manual page, it lives in section 3pm, and it's about making your tickets look pretty in a Gantt chart. slay.
π NAME π
RT::Extension::JSGantt β Gantt charts for your tickets. that's it, that's the whole name. iconic.
π DESCRIPTION π
so here's the vibe: this extension takes your Starts and Due dates, plus your ticket dependencies, and turns them into Gantt charts. that's the whole thing. no cap.
π INSTALLATION π
run these, in this order, no skips:
perl Makefile.PL
make
make install
heads up: make install may need root permissions. like, sudo energy. π
then you gotta create or edit a file in /etc/request-tracker5/RT_SiteConfig.d β pick your era:
- if you're on RT 4.2 or greater, add this line:
Plugin('RT::Extension::JSGantt');
- if you're on RT 4.0... wait, RT 4.0, add this line:
Set(@Plugins, qw(RT::Extension::JSGantt));
- or honestly just add
RT::Extension::JSGanttto your existing@Pluginsline. whatever works for you, bestie. π«Ά
Clear your mason cache β yes you have to, don't fight it:
rm -rf /var/cache/request-tracker5/mason_data/obj
Restart your webserver. that's the last step. go off. π₯
π¦ CONFIGURATION π¦
here's the whole config block, exactly as it comes. don't @ me, just copy it:
Set(
%JSGanttOptions,
DefaultFormat => 'day', # or week or month or quarter
ShowOwner => 1,
ShowProgress => 1,
ShowDuration => 1,
# Configurable JSGantt options
# https://code.google.com/p/jsgantt/wiki/Documentation#4._Instantiate_JSGantt_using_()
# CaptionType => 'Resource',
# ShowStartDate => 1,
# ShowEndDate => 1,
# DateInputFormat => 'mm/dd/yyyy',
# DateDisplayFormat => 'mm/dd/yyyy',
# FormatArr => q|'day','week','month','quarter'|,
# define your own color scheme:
# ColorScheme => ['ff0000', 'ffff00', 'ff00ff', '00ff00', '00ffff', '0000ff'],
# we color owners consistently by default, you can disable it via:
# ColorSchemeByOwner => 0,
# you can specify colors to use, unspecified owners will be
# assigned to some color automatically:
# ColorSchemeByOwner => { root => 'ff0000', foo => '00ff00' },
# if can't find both start and end dates, use this color
NullDatesColor => 333,
# to calculate day length
WorkingHoursPerDay => 8,
# used to set start/end if one exists but the other does not
DefaultDays => 7,
);
that's a whole lot of commented-out options and honestly? they're all just sitting there waiting for you. β¨
πΈ METHODS πΈ
AllRelatedTickets
given a ticket, return all the relative tickets β and yes, that includes the original ticket itself. it's giving main character energy, the original ticket is always invited. π
TicketsInfo
given tickets, resolve useful info for jsgantt.js. returns a 2 element array: the 1st is the ids arrayref, the 2nd is the info hashref. two things, in that order, always. π«Ά
GetTimeRange
given a ticket, resolve its start/end. returns an array like ( $start_obj, $start, $end_obj, $end ). and $start and $end are strings like 3/21/2011. yes, that format. no, don't ask. π
π§ UPGRADING π§
DateDayBeforeMonth
so prior to version 1.02, there was an undocumented RT config option called DateDayBeforeMonth. sneaky. if you have DateDayBeforeMonth set in your RT, you can make JSGantt do the same thing by setting DateDisplayFormat in RT_SiteConfig.pm, like so:
Set(
%JSGanttOptions,
...
# DateDisplayFormat => 'dd/mm/yyyy',
...
);
uncomment that line, live your day-before-month truth. π
π AUTHOR π
Best Practical Solutions, LLC <modules@bestpractical.com>
π BUGS π
all bugs should be reported via email to
L<bug-RT-Extension-JSGantt@rt.cpan.org|mailto:bug-RT-Extension-JSGantt@rt.cpan.org>
or via the web at
L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-JSGantt>.
found a bug? tell them, don't suffer in silence bestie. π
π LICENSE AND COPYRIGHT π
this software is Copyright (c) 2014-2021 by Best Practical Solutions.
this is free software, licensed under:
The GNU General Public License, Version 2, June 1991
and that's the whole page, bestie!! π this one's running on perl v5.40.1, dated 2025-03-16, and it's filed under RT::Ex...SGantt(3pm) in the User Contributed Perl Documentation. go build a Gantt chart, you absolute icon. π
β¨π¦
π¦ where this page comes from
- debian trixie: rt5-extension-jsgantt 1.08-2 Β· GPL-2.0-only
- ubuntu resolute: rt5-extension-jsgantt 1.08-2 Β· GPL-2.0-only
- ubuntu stonking: rt5-extension-jsgantt 1.08-2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms