From e3fb2fbabb83a12117ca8db405dacd1781c028cd Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Wed, 3 Oct 2018 22:39:57 -0400 Subject: Bug 1489120 - Add a rest API to get triage owners for each product/component pair (#797) --- Bugzilla/WebService/Product.pm | 7 +++++++ docs/en/rst/api/core/v1/product.rst | 4 ++++ 2 files changed, 11 insertions(+) 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 The login name of the user who will be set as the QA Contact for new bugs by default. +=item C + +C The login name of the user who is named as the Triage Owner of the +component. + =item C C 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. -- cgit v1.2.3-24-g4f1b