if (filter_wants $params, 'tags', 'extra') {
$item{'tags'} = $bug->tags;
}
+ if (filter_wants $params, 'duplicates', 'extra') {
+ $item{'duplicates'} = [ map { as_int($_->id) } @{ $bug->duplicates } ];
+ }
# And now custom fields
my @custom_fields = Bugzilla->active_custom_fields;
if (filter_wants $params, 'tags', 'extra') {
$item{'tags'} = $bug->tags;
}
+ if (filter_wants $params, 'duplicates', 'extra') {
+ $item{'duplicates'} = [ map { $self->type('int', $_->id) } @{ $bug->duplicates } ];
+ }
# And now custom fields
my @custom_fields = Bugzilla->active_custom_fields;
Note that tags are personal to the currently logged in user.
+=item C<duplicates>
+
+C<array> of C<integers>. Each array item is a bug ID that is a duplicate of this bug.
+
=back
=item C<faults> B<EXPERIMENTAL>
These fields are returned only by specifying ``_extra`` or the field name in
``include_fields``.
-==== ===== ====================================================================
-name type description
-==== ===== ====================================================================
-tags array Each array item is a tag name. Note that tags are
- personal to the currently logged in user and are not the same as
- comment tags.
-==== ===== ====================================================================
+========== ===== ====================================================================
+name type description
+========== ===== ====================================================================
+tags array Each array item is a tag name. Note that tags are
+ personal to the currently logged in user and are not the same as
+ comment tags.
+duplicates array Each array item is a bug ID that is a duplicate of this bug.
+========== ===== ====================================================================
User object: