summaryrefslogtreecommitdiffstats
path: root/Bugzilla/API/1_0/Resource/Bug.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/API/1_0/Resource/Bug.pm')
-rw-r--r--Bugzilla/API/1_0/Resource/Bug.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/API/1_0/Resource/Bug.pm b/Bugzilla/API/1_0/Resource/Bug.pm
index c0be3c730..6a32a687f 100644
--- a/Bugzilla/API/1_0/Resource/Bug.pm
+++ b/Bugzilla/API/1_0/Resource/Bug.pm
@@ -1154,6 +1154,11 @@ sub add_comment {
$bug->add_comment($comment, { isprivate => $params->{is_private},
is_markdown => $params->{is_markdown},
work_time => $params->{work_time} });
+
+ # Add comment tags
+ $bug->set_all({ comment_tags => $params->{comment_tags} })
+ if defined $params->{comment_tags};
+
$bug->update();
my $new_comment_id = $bug->{added_comments}[0]->id;