]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1004370: Add personal tags to Bug.get
authorMatt Tyson <mtyson@redhat.com>
Fri, 6 Jun 2014 05:41:16 +0000 (13:41 +0800)
committerByron Jones <glob@mozilla.com>
Fri, 6 Jun 2014 05:41:16 +0000 (13:41 +0800)
r=glob,a=justdave

Bugzilla/WebService/Bug.pm

index 059fdaddec2f6605756f5bfa37f3257d9c126e70..8bb43936b8b56c013b4997c1b98ce377a4a40be6 100644 (file)
@@ -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<string> 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<tags>
+
+C<array> of C<string>s.  Each array item is a tag name.
+
+Note that tags are personal to the currently logged in user.
+
+=back
+
 =item C<faults> B<EXPERIMENTAL>
 
 An array of hashes that contains invalid bug ids with error messages
@@ -3049,13 +3064,12 @@ on spaces. So searching for C<foo bar> 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<tag>
+=item C<tags>
 
 C<string> Searches for a bug with the specified tag.  If you specify an
 array, then any bugs that match I<any> 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<target_milestone>