.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "WWW::Bugzilla::Search 3pm" .TH WWW::Bugzilla::Search 3pm "2021-01-07" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" WWW::Bugzilla::Search \- Handles searching bugzilla bugs via WWW::Mechanize. .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use WWW::Bugzilla::Search; \& \& # Login \& my $search = WWW::Bugzilla::Search\->new( \& server => \*(Aqbugs.example.com\*(Aq, \& email => \*(Aquser@example.com\*(Aq, \& password => \*(Aqmy_passwd\*(Aq, \& ); \& \& $search\->summary(\*(AqThis is my summary\*(Aq); \& my @bugs = $search\->search(); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" WWW::Bugzilla::Search provides an \s-1API\s0 to search for bugs in a Bugzilla database. Any resulting bugs will be returned as instances of WWW::Bugzilla bugs. .SH "INTERFACE" .IX Header "INTERFACE" .SS "Multiple choice search criteria" .IX Subsection "Multiple choice search criteria" The following fields are multiple choice fields: .PP classification, component, op_sys, priority, product, resolution, bug_severity, bug_status, target_milestone, version, hardware, rep_platform .PP Available options can be retrieved via: .PP .Vb 1 \& $search\->field(); .Ve .PP To choose a given value, use: .PP .Vb 1 \& $search\->field(\*(Aqvalue\*(Aq); .Ve .SS "Text search criteria" .IX Subsection "Text search criteria" The following fields are avaiilable for text searching: .PP assigned_to, reporter, summary .PP To searc using a given field, use: .PP .Vb 1 \& $search\->field(\*(Aqvalue\*(Aq); .Ve .SS "Methods" .IX Subsection "Methods" \fI\f(BIsearch()\fI\fR .IX Subsection "search()" .PP Searches Bugzilla with the defined criteria. Returns a list of bugs that match the criteria. Each bug is a separate instance of WWW::Bugzilla .PP \fI\f(BIreset()\fI\fR .IX Subsection "reset()" .PP Resets all search criteria. .SH "BUGS, IMPROVEMENTS" .IX Header "BUGS, IMPROVEMENTS" There may well be bugs in this module. Using it as I have, I just have not run into any. In addition, this module does not support \s-1ALL\s0 of Bugzilla's features. I will consider any patches or improvements, just send me an email at the address listed below. .SH "AUTHOR" .IX Header "AUTHOR" Written by: Brian Caswell (bmc@shmoo.com) .PP Portions taken from WWW::Bugzilla, originally written by: Matthew C. Vella (the_mcv@yahoo.com) .SH "LICENSE" .IX Header "LICENSE" .Vb 2 \& WWW::Bugzilla::Search \- Module providing API to search Bugzilla bugs. \& Copyright (C) 2006 Brian Caswell (bmc@shmoo.com) \& \& Portions Copyright (C) 2003 Matthew C. Vella (the_mcv@yahoo.com) \& \& This module is free software; you can redistribute it and/or modify it \& under the terms of either: \& \& a) the GNU General Public License as published by the Free Software \& Foundation; either version 1, or (at your option) any later version, \& or \& \& b) the "Artistic License" which comes with this module. \& \& This program is distributed in the hope that it will be useful, \& but WITHOUT ANY WARRANTY; without even the implied warranty of \& MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either \& the GNU General Public License or the Artistic License for more details. \& \& You should have received a copy of the Artistic License with this \& module, in the file ARTISTIC. If not, I\*(Aqll be glad to provide one. \& \& You should have received a copy of the GNU General Public License \& along with this program; if not, write to the Free Software \& Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111\-1307 \& USA .Ve