Bug Class Reference

Collaboration diagram for Bug:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class Encapsulates a bug in Bugzilla.

One should assume that all operations on a Bug will create network traffic, unless specifically indicated they will not.

Properties reflect settings that will not cause network traffic, except for Resolution, while methods typically involves the server on the other end.

Currently there are no public constructors. You should get a Bug object from Server.GetBug or Server.GetBugs.

Definition at line 51 of file Bug.cs.


Experimental

Experimental methods require patches.

string Resolution [set]
 Set the bug resolution.
void AppendComment (string comment, bool?isPrivate, double?worktime)
 Append a comment to the bug.
void AppendComment (string comment)
 Append a comment to the bug.
void AppendComment (string comment, bool?isPrivate)
 Append a comment to the bug.
void AppendComment (string comment, double?worktime)
 Append a comment to the bug.

Public Member Functions

General methods


void Update ()
 Update bug from server.

Properties

int Id [get]
 Get the bug id number.
DateTime Created [get]
 Get the time the bug was created.
DateTime Changed [get]
 Get the time the bug was last changed.
string Alias [get]
 Get the bug alias.
string Summary [get]
 Get the bug summary.

Member Function Documentation

void Update (  )  [inline]

Update bug from server.

Get any changes to the bug from the server. This updates information such as the time/date of the last change to the bug, etc.

Definition at line 77 of file Bug.cs.

References GetBugsResult::bugs, IProxy::GetBugs(), BugInfo::id, BugIds::ids, and Server::Proxy.

void AppendComment ( string  comment,
bool?  isPrivate,
double?  worktime 
) [inline]

Append a comment to the bug.

Parameters:
comment The comment to append
isPrivate true to make this comment visible to members of Bugzilla's insidergroup only, false (or null) to make it visible to all members.
worktime The work time of this comment. Can be null or 0 for no work time. Ignored if You are not in the timetrackinggroup.

This requires a patch from Bug 355847.

If isPrivate is null, the comment is assumed public.

Todo:
, call update?

Definition at line 108 of file Bug.cs.

References IProxy::AppendComment(), AppendCommentParam::comment, BugInfo::id, AppendCommentParam::id, AppendCommentParam::isPrivate, Server::Proxy, and AppendCommentParam::workTime.

Referenced by Bug::AppendComment().

void AppendComment ( string  comment  )  [inline]

Append a comment to the bug.

Parameters:
comment The comment to append
Works with Bugzilla trunk (3.1.2+) only

Definition at line 123 of file Bug.cs.

References Bug::AppendComment().

void AppendComment ( string  comment,
bool?  isPrivate 
) [inline]

Append a comment to the bug.

Parameters:
comment The comment to append
isPrivate true to make this comment visible to members of Bugzilla's insidergroup only, false (or null) to make it visible to all members.
Works with Bugzilla trunk (3.1.2+) only

Definition at line 135 of file Bug.cs.

References Bug::AppendComment().

void AppendComment ( string  comment,
double?  worktime 
) [inline]

Append a comment to the bug.

Parameters:
comment The comment to append
worktime The work time of this comment. Can be null or 0 for no work time. Ignored if You are not in the timetrackinggroup.
Works with Bugzilla trunk (3.1.2+) only

Definition at line 147 of file Bug.cs.

References Bug::AppendComment().


Property Documentation

string Resolution [set]

Set the bug resolution.

A string with a legal resolution value to set for this bug.

This property is not implemented in Bugzilla, and requires an unpublished patch. It calls a web service named Bug.set_resolution (and therefore creates network traffic).

Definition at line 158 of file Bug.cs.

int Id [get]

Get the bug id number.

The bug id.

Definition at line 174 of file Bug.cs.

DateTime Created [get]

Get the time the bug was created.

The bug creation time.

Definition at line 184 of file Bug.cs.

DateTime Changed [get]

Get the time the bug was last changed.

The bug last change time.

A change may be a change in any of the bug fields, or a change in the status of an attachment of the bug.

Definition at line 196 of file Bug.cs.

string Alias [get]

Get the bug alias.

The bug alias

Definition at line 206 of file Bug.cs.

string Summary [get]

Get the bug summary.

The bug summary

Definition at line 216 of file Bug.cs.


The documentation for this class was generated from the following file:
Generated on Thu Jan 17 07:31:46 2008 for BugzillaProxy by  doxygen 1.5.4