summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKohei Yoshino <kohei.yoshino@gmail.com>2018-10-04 04:39:57 +0200
committerGitHub <noreply@github.com>2018-10-04 04:39:57 +0200
commite3fb2fbabb83a12117ca8db405dacd1781c028cd (patch)
tree3bcfcbf6f12bf8d1e2ed853da27a1c07a07b7775
parent52c4131f5ebd08d591b908b497ee66f808279ee5 (diff)
downloadbugzilla-e3fb2fbabb83a12117ca8db405dacd1781c028cd.tar.gz
bugzilla-e3fb2fbabb83a12117ca8db405dacd1781c028cd.tar.xz
Bug 1489120 - Add a rest API to get triage owners for each product/component pair (#797)
-rw-r--r--Bugzilla/WebService/Product.pm7
-rw-r--r--docs/en/rst/api/core/v1/product.rst4
2 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Product.pm b/Bugzilla/WebService/Product.pm
index 6ca3fee90..0b58c6e1c 100644
--- a/Bugzilla/WebService/Product.pm
+++ b/Bugzilla/WebService/Product.pm
@@ -215,6 +215,8 @@ sub _component_to_hash {
$self->type('email', $component->default_assignee->login),
default_qa_contact =>
$self->type('email', $component->default_qa_contact->login),
+ triage_owner =>
+ $self->type('email', $component->triage_owner->login),
sort_key => # sort_key is returned to match Bug.fields
0,
is_active =>
@@ -548,6 +550,11 @@ default.
C<string> The login name of the user who will be set as the QA Contact for
new bugs by default.
+=item C<triage_owner>
+
+C<string> The login name of the user who is named as the Triage Owner of the
+component.
+
=item C<sort_key>
C<int> Components, when displayed in a list, are sorted first by this integer
diff --git a/docs/en/rst/api/core/v1/product.rst b/docs/en/rst/api/core/v1/product.rst
index 4819bbbbe..a1f5bd3c8 100644
--- a/docs/en/rst/api/core/v1/product.rst
+++ b/docs/en/rst/api/core/v1/product.rst
@@ -142,6 +142,7 @@ type string The group of products to return. Valid values are
]
},
"default_qa_contact": "",
+ "triage_owner": "",
"description": "This is a test component."
}
],
@@ -215,6 +216,9 @@ default_assigned_to string The login name of the user to whom new bugs
default_qa_contact string The login name of the user who will be set as
the QA Contact for new bugs by default. Empty
string if the QA contact is not defined.
+triage_owner string The login name of the user who is named as the
+ Triage Owner of the component. Empty string if the
+ Triage Owner is not defined.
sort_key int Components, when displayed in a list, are sorted
first by this integer and then secondly by their
name.