-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
48 lines (34 loc) · 1.91 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
BugzillaClient(3) User Contributed Perl Documentation BugzillaClient(3)
NAME
SUSE::BugzillaClient - A Client Library for accessing a bugzilla
server.
DESCRIPTION
SUSE::BugzillaClient is a client Library for accessing a bugzilla
server. Note: The server has to support XML output (&ctype=xml). It
can query bugs by ID or the URL of a search. It returns a hash for each
bug that contains the bugs properties.
SYNOPSIS
use SUSE::BugzillaClient;
#login to bugzilla my $jar = bzConnect( 'username','pw' );
#call query methods with the $jar object
#do something meaningful with the result, see BugzillaClientTest.pl
METHODS
bzConnect( $user, $pass )
Login to standard bugzilla and get the cookie $jar
getBug( $jar, $bugid )
Get a bug by id, returns a bug hash with the following content: (
"bug_id", "creation_ts", "short_desc", "delta_ts", "product",
"component", "version", "rep_platform", "op_sys", "bug_status",
"priority", "bug_severity", "target_milestone", "resolution" )
getBugs( $jar, $url )
Get a list of bug hashes by providing a search url (like
https://bugzilla.novell.com/buglist.cgi?query_format=advanced&product=openSUSE+10.3&bug_status=NEEDINFO)
getBugsCSV( $jar, $url )
Get a list of bug hashes by providing a CSV search url (like
https://bugzilla.novell.com/buglist.cgi?query_format=advanced&product=openSUSE+10.3&bug_status=NEEDINFO&ctype=csv,
get this URL from the "CSV" link on the bottom of the search result
page)
Faster than using getBugs() because not all XML output has to be
parsed, but only these fields will be available in the bug hashes:
bug_id, changeddate, bug_severity, priority, assigned_to, reporter,
bug_status, product, short_short_desc (!)