1BZ::Client::Bug(3)    User Contributed Perl Documentation   BZ::Client::Bug(3)
2
3
4

NAME

6         BZ::Client::Bug - Client side representation of a bug in Bugzilla
7
8       This class provides methods for accessing and managing bugs in
9       Bugzilla.
10

SYNOPSIS

12         my $client = BZ::Client->new("url" => $url,
13                                      "user" => $user,
14                                      "password" => $password);
15         my $bugs = BZ::Client::Bug->get($client, $ids);
16

CLASS METHODS

18       This section lists the class methods, which are available in this
19       module.
20
21   get
22         my $bugs = BZ::Client::Bug->get($client, $ids);
23
24       Returns a list of bug instances with the given ID's.
25
26   new
27         my $bug = BZ::Client::Bug->new("id" => $id);
28
29       Creates a new instance with the given ID.
30
31   create
32         my $id = BZ::Client::Bug->create($client, $params);
33
34       Creates a new bug and returns the bug ID.
35
36   search
37         my $bugs = BZ::Client::Bug->search($client, $params);
38
39       Searches for bugs matching the given parameters.
40

INSTANCE METHODS

42       This section lists the modules instance methods.
43
44   id
45         my $id = $bug->id();
46         $bug->id($id);
47
48       Gets or sets the bugs ID.
49
50   alias
51         my $alias = $bug->alias();
52         $bug->alias($alias);
53
54       Gets or sets the bugs alias. If there is no alias or aliases are
55       disabled in Bugzilla, this will be an empty string.
56
57   assigned_to
58         my $assigned_to = $bug->assigned_to();
59         $bug->assigned_to($assigned_to);
60
61       Gets or sets the login name of the user to whom the bug is assigned.
62
63   component
64         my $component = $bug->component();
65         $bug->component($component);
66
67       Gets or sets the name of the current component of this bug.
68
69   creation_time
70         my $dateTime = $bug->creation_time();
71         $bug->creation_time($dateTime);
72
73       Gets or sets the date and time, when the bug was created.
74
75   dupe_of
76         my $dupeOf = $bug->dupe_of();
77         $bug->dupe_of($dupeOf);
78
79       Gets or sets the bug ID of the bug that this bug is a duplicate of. If
80       this bug isn't a duplicate of any bug, this will be an empty int.
81
82   is_open
83         my $isOpen = $bug->is_open();
84         $bug->is_open($isOpen);
85
86       Gets or sets, whether this bug is closed. The return value, or
87       parameter value is true (1) if this bug is open, false (0) if it is
88       closed.
89
90   last_change_time
91         my $lastChangeTime = $bug->last_change_time();
92         $bug->last_change_time($lastChangeTime);
93
94       Gets or sets the date and time, when the bug was last changed.
95
96   priority
97         my $priority = $bug->priority();
98         $bug->priority($priority);
99
100       Gets or sets the priority of the bug.
101
102   product
103         my $product = $bug->product();
104         $bug->product($product);
105
106       Gets or sets the name of the product this bug is in.
107
108   resolution
109         my $resolution = $bug->resolution();
110         $bug->resolution($resolution);
111
112       Gets or sets the current resolution of the bug, or an empty string if
113       the bug is open.
114
115   severity
116         my $severity = $bug->severity();
117         $bug->severity($severity);
118
119       Gets or sets the current severity of the bug.
120
121   status
122         my $status = $bug->status();
123         $bug->status($status);
124
125       Gets or sets the current status of the bug.
126
127   summary
128         my $summary = $bug->summary();
129         $bug->summary($summary);
130
131       Gets or sets the summary of this bug.
132

SEE ALSO

134         L<BZ::Client>, L<BZ::Client::API>
135
136
137
138perl v5.12.0                      2010-02-03                BZ::Client::Bug(3)
Impressum