Show requestor name in Gantt chart

I’m looking for a way to show the requestor’s name in the Gantt chart. Is that possible?

From what I was able to find, it looks like I need to edit the line below in $RTHOME/local/plugins/RT-Extension-JSGantt/lib/RT/Extension/JSGantt.pm, but I don’t know what variable to use there.

name => ( $Ticket->id . ': ’ . substr $subject, 0, 30 ),

My idea is to have something like this:

name => ( $Ticket->id . ': ’ . substr $subject, 0, 30 . ' - ' $requestor-name ),

try $Ticket->Requestor, something like “my $requestor = $Ticket->Requestor->UserMembersObj->First->RealName”

Thank you @G.Booth. Unfortunately, that didn’t work.

name => ( $Ticket->id . ': ’ . substr $subject, 0, 30 . ' - ' . $Ticket->Requestor->UserMembersObj->First->RealName ),

This returned an error:

[4119] [Wed May 22 14:18:45 2024] [warning]: Argument "30 - " isn’t numeric in substr at /opt/rt5/local/plugins/RT-Extension-JSGantt/lib/RT/Extension/JSGantt.pm line 272. (/opt/rt5/local/plugins/RT-Extension-JSGantt/lib/RT/Extension/JSGantt.pm:272)

name => ( $Ticket->id . ': ' . $subject . ' - ' . $Ticket->Requestor->UserMembersObj->First->RealName ),

This doesn’t return an error, but only shows id: subject -

name => ( $Ticket->id . ': ' . $subject . ' - ' . $Ticket->Requestor->UserMembersObj->First->Name ),

This did it.

Thanks @G.Booth for pointing me in the right direction.