1RT::Client::REST::QueueU(s3e)r Contributed Perl DocumentaRtTi:o:nClient::REST::Queue(3)
2
3
4
6 RT::Client::REST::Queue - queue object representation.
7
9 version 0.57
10
12 my $rt = RT::Client::REST->new(server => $ENV{RTSERVER});
13
14 my $queue = RT::Client::REST::Queue->new(
15 rt => $rt,
16 id => 'General',
17 )->retrieve;
18
20 RT::Client::REST::Queue is based on RT::Client::REST::Object. The
21 representation allows one to retrieve, edit, comment on, and create
22 queue in RT.
23
24 Note: RT currently does not allow REST client to search queues.
25
27 id
28 For retrieval, you can specify either the numeric ID of the queue or
29 its name (case-sensitive). After the retrieval, however, this
30 attribute will be set to the numeric id.
31
32 name
33 This is the name of the queue.
34
35 description
36 Queue description.
37
38 correspond_address
39 Correspond address.
40
41 comment_address
42 Comment address.
43
44 initial_priority
45 Initial priority.
46
47 final_priority
48 Final priority.
49
50 default_due_in
51 Default due in.
52
53 cc_addresses
54 CC Addresses (comma delimited).
55
56 admin_cc_addresses
57 Admin CC Addresses (comma delimited).
58
59 cf
60 Access custom fields. Inherited from RT::Client::REST::Object, where
61 you can read more details.
62
63 Trivial example:
64
65 my $queue = RT::Client::REST::Queue->new(
66 rt => $rt, id => $queue_id
67 )->retrieve();
68 my @customfields = $queue->cf();
69 for my $f (@customfields) {
70 my $v = $queue->cf($f);
71 say "field: $f";
72 say "value: $v";
73 }
74
76 For full explanation of these, please see "DB METHODS" in
77 RT::Client::REST::Object documentation.
78
79 retrieve
80 Retrieve queue from database.
81
82 store
83 Create or update the queue.
84
85 search
86 Currently RT does not allow REST clients to search queues.
87
89 tickets
90 Get tickets that are in this queue (note: this may be a lot of
91 tickets). Note: tickets with status "deleted" will not be shown.
92 Object of type RT::Client::REST::SearchResult is returned which then
93 can be used to get to objects of type RT::Client::REST::Ticket.
94
96 rt_type
97 Returns 'queue'.
98
100 RT::Client::REST, RT::Client::REST::Object,
101 RT::Client::REST::SearchResult, RT::Client::REST::Ticket.
102
104 · Abhijit Menon-Sen <ams@wiw.org>
105
106 · Dmitri Tikhonov <dtikhonov@yahoo.com>
107
108 · Damien "dams" Krotkine <dams@cpan.org>
109
110 · Dean Hamstead <dean@bytefoundry.com.au>
111
112 · Miquel Ruiz <mruiz@cpan.org>
113
114 · JLMARTIN
115
116 · SRVSH
117
119 This software is copyright (c) 2020 by Dmitri Tikhonov.
120
121 This is free software; you can redistribute it and/or modify it under
122 the same terms as the Perl 5 programming language system itself.
123
124
125
126perl v5.30.2 2020-04-29 RT::Client::REST::Queue(3)