RT::Client::REST::Queue
queue object representation.
- Provided by: librt-client-rest-perl (Version: 1:0.72-1)
- Report a bug
queue object representation.
version 0.72
my $rt = RT::Client::REST->new(server => $ENV{RTSERVER});
my $queue = RT::Client::REST::Queue->new(
rt => $rt,
id => 'General',
)->retrieve;
RT::Client::REST::Queue is based on RT::Client::REST::Object. The representation allows one to retrieve, edit, comment on, and create queue in RT.
Note: RT currently does not allow REST client to search queues.
Trivial example:
my $queue = RT::Client::REST::Queue->new(
rt => $rt,
id => $queue_id
)->retrieve();
my @customfields = $queue->cf();
for my $f (@customfields) {
my $v = $queue->cf($f);
say "field: $f";
say "value: $v";
}
For full explanation of these, please see "DB METHODS" in RT::Client::REST::Object documentation.
RT::Client::REST, RT::Client::REST::Object, RT::Client::REST::SearchResult, RT::Client::REST::Ticket.
Dean Hamstead <dean@fragfest.com.au>
This software is copyright (c) 2023, 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.