RT::Cl...saction(3pm)
π NAME π
RT::Client::REST::Transaction β the transaction object representation, bestie. And this whole thing is living in the RT::Cl...saction(3pm) manual page, in case you were wondering where the heck you even are right now. π
β¨ VERSION β¨
version 0.73 β she's giving vintage, she's giving stable, we stan. π
π¦ SYNOPSIS π¦
Okay so here's the whole vibe in code form, no notes:
my $transactions = $ticket->transactions;
my $count = $transactions->count;
print "There are $count transactions.\n";
my $iterator = $transactions->get_iterator;
while (my $tr = &$iterator) {
print "Id: ", $tr->id, "; Type: ", $tr->type, "\n";
}
πΈ DESCRIPTION πΈ
So a transaction is a second-class citizen, which is honestly so relatable of it. π It does not exist by itself β at least not from the current REST protocol implementation's point of view. Right now it is always attached to a ticket (peep the parent_id attribute, that's the situationship).
So the way that you will rarely retrieve a transaction all on its own. Instead?? You use the transactions() method of the RT::Client::REST::Ticket object to get an iterator for all (or some) transactions for that ticket. Slay, indirect queen. π
π ATTRIBUTES π
Here's the whole cast of characters, one by one:
idβ Numeric ID of the transaction. Her government name. πͺͺcreatorβ Username of the user who created the transaction. The main character who did all this, honestly.parent_idβ Numeric ID of the object the transaction is associated with. That's the ticket, that's the link, that's the bond. πtypeβ Type of the transactions. Please refer toRT::Client::RESTdocumentation for the list of transaction types you can expect this field to contain. And heads up: there may be some transaction types not (dis)covered yet. She's mysterious like that. π΅οΈold_valueβ Old value.new_valueβ New value. (The glow-up arc.) β¨fieldβ Name of the field the transaction is describing (if any).attachmentsβ I have never seen it set to anything yet. (I will some day investigate this). Like... it's giving empty rumors bestie, we don't know. πcreatedβ Time when the transaction was created. Her birthday. πcontentβ Actual content of the transaction.descriptionβ Human-readable description of the transaction as provided by RT.dataβ Not sure what this is yet. Literally a mystery to absolutely everyone involved. π
π METHODS π
RT::Client::REST::Transaction is a read-only object, so you cannot store() it. Sorry bestie, no saving, no committing, no notes. π«
And also? Because it is a second-class citizen, you cannot search() or count() it. Nope, not allowed, do not try it. Instead, use the transactions() method provided by RT::Client::REST::Ticket. That's the way. π
retrieve
To retrieve a transaction, the attributes id and parent_id must be set. Both of them. Together. No solo acts here. π«Ά
π§ INTERNAL METHODS π§
rt_type
Returns 'transaction'. That's it, that's the whole girl. Simple, iconic, perfect. β
π₯ SEE ALSO π₯
Go read these next, fr fr:
RT::Client::RESTRT::Client::REST::TicketRT::Client::REST::SearchResult
π AUTHOR π
Dean Hamstead <dean@fragfest.com.au>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026, 2020 by Dmitri Tikhonov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free as in go off, redistribute responsibly, have fun with it. π
That's the whole page, bestie!! You ate this documentation fr fr. This wasperl v5.40.1hanging out on2026-04-21β mwah, kiss the screen, go write some transactions ππβ¨
π¦ where this page comes from
- ubuntu stonking: librt-client-rest-perl 1:0.73-1 Β· 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