summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authorKohei Yoshino <kohei.yoshino@gmail.com>2018-10-02 20:24:06 +0200
committerdklawren <dklawren@users.noreply.github.com>2018-10-02 20:24:06 +0200
commitb340e1d0568ea33d15ff59ff48560e78966121e4 (patch)
treef894d83f6b3f17e51500ef93afc2a5709e8a14b1 /Bugzilla/WebService
parent62412db14081dd66cd5b2701b598b5af9eb31528 (diff)
downloadbugzilla-b340e1d0568ea33d15ff59ff48560e78966121e4.tar.gz
bugzilla-b340e1d0568ea33d15ff59ff48560e78966121e4.tar.xz
Bug 1263502 - Add duplicates to /rest/bug/id
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r--Bugzilla/WebService/Bug.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm
index d247b8ffb..9003f3480 100644
--- a/Bugzilla/WebService/Bug.pm
+++ b/Bugzilla/WebService/Bug.pm
@@ -1412,6 +1412,9 @@ sub _bug_to_hash {
if (filter_wants $params, 'dupe_of') {
$item{'dupe_of'} = $self->type('int', $bug->dup_id);
}
+ if (filter_wants $params, 'duplicates') {
+ $item{'duplicates'} = [ map { $self->type('int', $_->id) } @{ $bug->duplicates } ];
+ }
if (filter_wants $params, 'groups') {
my @groups = map { $self->type('string', $_->name) }
@{ $bug->groups_in };
@@ -2594,6 +2597,10 @@ C<array> of C<int>s. The ids of bugs that this bug "depends on".
C<int> The bug ID of the bug that this bug is a duplicate of. If this bug
isn't a duplicate of any bug, this will be null.
+=item C<duplicates>
+
+C<array> of C<int>s. The ids of bugs that are marked as duplicate of this bug.
+
=item C<estimated_time>
C<double> The number of hours that it was estimated that this bug would
@@ -2911,6 +2918,8 @@ and all custom fields.
=item The C<actual_time> item was added to the C<bugs> return value
in Bugzilla B<4.4>.
+=item The C<duplicates> array was added in Bugzilla B<6.0>.
+
=back
=back