5.7.14. Bugzilla::Comment¶
5.7.14.1. NAME¶
Bugzilla::Comment - A Comment for a given bug
5.7.14.2. SYNOPSIS¶
use Bugzilla::Comment;
my $comment = Bugzilla::Comment->new($comment_id);
my $comments = Bugzilla::Comment->new_from_list($comment_ids);
5.7.14.3. DESCRIPTION¶
Bugzilla::Comment represents a comment attached to a bug.
This implements all standard Bugzilla::Object methods. See
Bugzilla::Object for more details.
Accessors¶
bug_id
intThe ID of the bug to which the comment belongs.
creation_ts
stringThe comment creation timestamp.
body
stringThe body without any special additional text.
work_time
stringTime spent as related to this comment.
is_private
booleanComment is marked as private.
already_wrapped
If this comment is stored in the database word-wrapped, this will be1.0otherwise.
author
Bugzilla::User who created the comment.
count
intThe position this comment is located in the full list of comments for a bug starting from 0.
collapsed
booleanComment should be displayed as collapsed by default.
tags
array of stringsThe tags attached to the comment.
add_tag
Description
Attaches the specified tag to the comment.Params
tagstringThe tag to attach.
remove_tag
Description
Detaches the specified tag from the comment.Params
tagstringThe tag to detach.
body_full
Description
stringBody of the comment, including any special text (such as "this bug was marked as a duplicate of...").Params
is_bugmailboolean.1if this comment should be formatted specifically for bugmail.
wrapboolean.1if the comment should be returned word-wrapped.Returns
A string, the full text of the comment as it would be displayed to an end-user.