~bestpractical/rt/master

« back to all changes in this revision

Viewing changes to lib/RT/Search/ActiveTicketsInQueue.pm

  • Committer: sunnavy
  • Date: 2023-10-19 19:45:11 UTC
  • mfrom: (8471.1.577)
  • Revision ID: git-v1:9fca83d11d15fb8034308194b9c9052d5df7d454
Merge branch '5.0-trunk'

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
=head1 NAME
50
50
 
51
 
  RT::Search::ActiveTicketsInQueue
 
51
RT::Search::ActiveTicketsInQueue
52
52
 
53
53
=head1 SYNOPSIS
54
54
 
 
55
    rt-crontool --search RT::Search::ActiveTicketsInQueue \
 
56
        --search-arg "General" \
 
57
        --action RT::Action \
 
58
        --verbose \
 
59
        --log debug
 
60
 
55
61
=head1 DESCRIPTION
56
62
 
57
 
Find all active tickets in the queue named in the argument passed in
 
63
Find all active tickets in the queue named in the provided Argument.
58
64
 
59
65
=head1 METHODS
60
66
 
61
 
 
62
 
 
63
 
 
64
67
=cut
65
68
 
66
69
package RT::Search::ActiveTicketsInQueue;
69
72
use warnings;
70
73
use base qw(RT::Search);
71
74
 
 
75
=head2 Describe
 
76
 
 
77
Returns a localized string describing the module's function.
 
78
 
 
79
=cut
72
80
 
73
81
sub Describe  {
74
82
  my $self = shift;
75
 
  return ($self->loc("No description for [_1]", ref $self));
 
83
  return ($self->loc("Find active tickets in a queue [_1]", ref $self));
76
84
}
77
85
 
 
86
=head2 Prepare
 
87
 
 
88
Runs a search on the associated L<RT::Tickets> object, limiting
 
89
it to active tickets in the queue identified by the provided
 
90
Argument.
 
91
 
 
92
The search is performed in the context of the user running the
 
93
command. For rt-crontool searches, this is the L<RT::User> account
 
94
associated with the Linux account running rt-crontool via the
 
95
"Unix login" setting.
 
96
 
 
97
=cut
 
98
 
78
99
sub Prepare  {
79
100
  my $self = shift;
80
101