Net::T...:Ticket(3pm)
π Net::Trac::Ticket π
okay bestie, gather round π«Ά this is the page for Net::Trac::Ticket, from the User Contributed Perl Documentation, section 3pm (the header truncates it all cute as Net::T...:Ticket(3pm), but we know the real name, iykyk β¨).
πΈ NAME πΈ
Net::Trac::Ticket β create, read, and update tickets on a remote Trac instance. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
my $ticket = Net::Trac::Ticket->new( connection => $trac );
$ticket->load( 1 );
print $ticket->summary, "\n";
like, look how little code that is. iconic. no cap. π
π¦ DESCRIPTION π¦
This class is literally the glow-up representation of a ticket on a remote Trac instance. It hands you the methods for creating, reading, and updating tickets and their history, plus adding comments and grabbing attachments. the way it does all of thatβ¦ obsessed π
β° timestamp_to_datetime $stamp
It accept's a timestamp in Trac's somewhat idiosyncratic format (yes, that's how the original spells it, we don't fix, we respect) and hands you back a DateTime object. β¨
π₯ METHODS π₯
new HASHβ takes a key"connection"whose value is aNet::Trac::Connection. Returns an empty ticket object. blank slate, main character energy πload IDβ loads up the ticket with the specified ID. Returns the ticket ID it loaded on success, andundefon failure. π«Άload_from_hashref HASHREF [SKIP]β bestie, you should never need to use this method yourself. It loads a ticket from a hashref of data, and optionally skips metadata loading (that's the values of the"valid_*"accessors). πcreate HASHβ creates and loads a new ticket with the values you specified. Returnsundefon failure and the new ticket ID on success. baby ticket, born β¨update HASHβ updates the current ticket with the specified values. Returnsundefon failure, and the ID of the current ticket on success. πcomment TEXTβ adds a comment to the current ticket. Returnsundefon failure, true on success. say your piece queen πhistoryβ returns aNet::Trac::TicketHistoryobject for this ticket. πcommentsβ returns an array or arrayref (depending on context, yes it's context-sensitive, we love a shapeshifter) of history entries that have comments included. This will also include history entries representing attachments if they have descriptions. πattach PARAMHASHβ attaches the specified"file"with an optional"description". Returnsundefon failure and the newNet::Trac::TicketAttachmentobject on success. πattachmentsβ returns an array or arrayref (context again!! depending on context) of all theNet::Trac::TicketAttachmentobjects for this ticket. π
π ACCESSORS π
connectionidsummarytypestatuspriorityseverityresolutionownerreporterccdescriptionkeywordscomponentmilestoneversioncreatedβ returns aDateTimeobject. β°last_modifiedβ returns aDateTimeobject. β°basic_statusesβ returns a list of the basic statuses available for a ticket. Others may be defined by the remote Trac instance, but we have no way of easily getting them. rip to those ones πvalid_propsβ returns a list of the valid properties of a ticket.add_custom_propsβ adds custom properties to the valid properties list.valid_create_propsβ returns a list of the valid properties specifiable when creating a ticket.valid_update_propsβ returns a list of the valid updatable properties.
π§ Valid property values
These accessors get loaded from the remote Trac instance with the valid values for the properties upon instantiation of a ticket object. so like, at the moment the object wakes up, the Trac server has already told it what's valid. slay πΈ
valid_milestonesvalid_typesvalid_componentsvalid_prioritiesvalid_resolutionsβ only loaded when a ticket is loaded. no ticket, no resolutions, that's the rule πvalid_severitiesβ may not be provided by the Trac instance. so like, don't come for it if it ghosts you π
π LICENSE π
Copyright 2008-2009 Best Practical Solutions.
This package is licensed under the same terms as Perl 5.8.8. π«Ά
and that's the whole page, bestie. this one's from perl v5.36.0, dated 2022-12-12, and you read it all the way through which is honestly iconic of you πβ¨ bye mwah π
π¦ where this page comes from
- debian bookworm: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-trac-perl 0.16-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms