From 617eeba567adb04ca54b89906cde5676728dac51 Mon Sep 17 00:00:00 2001 From: Matt Tyson Date: Fri, 6 Jun 2014 13:41:16 +0800 Subject: Bug 1004370: Add personal tags to Bug.get r=glob,a=justdave --- Bugzilla/WebService/Bug.pm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 059fdadde..8bb43936b 100644 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -1279,6 +1279,9 @@ sub _bug_to_hash { if (filter_wants $params, 'flags') { $item{'flags'} = [ map { $self->_flag_to_hash($_) } @{$bug->flags} ]; } + if (filter_wants $params, 'tags', 'extra') { + $item{'tags'} = $bug->tags; + } # And now custom fields my @custom_fields = Bugzilla->active_custom_fields; @@ -2621,6 +2624,18 @@ C The user's email address. Currently this is the same value as the name =back +These fields are returned only by specifying "_extra" or the field name in "include_fields". + +=over + +=item C + +C of Cs. Each array item is a tag name. + +Note that tags are personal to the currently logged in user. + +=back + =item C B An array of hashes that contains invalid bug ids with error messages @@ -3049,13 +3064,12 @@ on spaces. So searching for C will match "This is a foo bar" but not "This foo is a bar". C<['foo', 'bar']>, would, however, match the second item. -=item C +=item C C Searches for a bug with the specified tag. If you specify an array, then any bugs that match I of the tags will be returned. -Note that tags are personal and only bugs belonging to the logged in -user will be returned. +Note that tags are personal to the currently logged in user. =item C -- cgit v1.2.3-24-g4f1b