Bugzilla::Comment - A Comment for a given bug
use Bugzilla::Comment; my $comment = Bugzilla::Comment->new($comment_id); my $comments = Bugzilla::Comment->new_from_list($comment_ids);
Bugzilla::Comment represents a comment attached to a bug.
This implements all standard Bugzilla::Object
methods. See Bugzilla::Object for more details.
bug_id
int
The ID of the bug to which the comment belongs.
creation_ts
string
The comment creation timestamp.
body
string
The body without any special additional text.
work_time
string
Time spent as related to this comment.
is_private
boolean
Comment is marked as private.
already_wrapped
If this comment is stored in the database word-wrapped, this will be 1
. 0
otherwise.
author
Bugzilla::User who created the comment.
count
int
The position this comment is located in the full list of comments for a bug starting from 0.
collapsed
boolean
Comment should be displayed as collapsed by default.
tags
array of strings
The tags attached to the comment.
add_tag
Attaches the specified tag to the comment.
tag
string
The tag to attach.
remove_tag
Detaches the specified tag from the comment.
tag
string
The tag to detach.
body_full
string
Body of the comment, including any special text (such as "this bug was marked as a duplicate of...").
is_bugmail
boolean
. 1
if this comment should be formatted specifically for bugmail.
wrap
boolean
. 1
if the comment should be returned word-wrapped.
A string, the full text of the comment as it would be displayed to an end-user.