If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Add API method to retrieve the current options for each product: component, version, target

RESOLVED WORKSFORME

Status

Webtools
BzAPI
RESOLVED WORKSFORME
7 years ago
7 years ago

People

(Reporter: dbuc, Assigned: gerv)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 523134 [details]
Product-choice hierarchy JSON object

I am building a tool called Cockpit for Bugzilla users, and currently I'm currently hand-generating the JSON object in the attached file by manually ripping apart the server-generated variables found in the source of this page https://bugzilla.mozilla.org/query.cgi

The query page has all these values on it, and uses them to populate the selects in the page dynamically based on which choices you make in product, component, etc. I would like to be able to call a method to get these values in some JSON format (doesn't have to be exactly like what I have attached) so that I am able to present an interface with the currently available choices for these parameters.
(Assignee)

Comment 1

7 years ago
This information isn't on the /configuration call, then?

Gerv
(Assignee)

Comment 2

7 years ago
https://api-dev.bugzilla.mozilla.org/latest/configuration?cached_ok=1

Yep, as far as I can see, this info is all there. If it's not, reopen this bug.

Did you not find this call when reading the BzAPI docs? If you have improvements to the documentation to suggest, I'm happy to hear them.

Gerv
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
(Reporter)

Comment 3

7 years ago
Yeah that totally works, I had looked at the configuration section but for some reason thought you had to pass it a product one at a time to get the rest of the data, didn't see this example call, makes perfect sense now! Thanks Gerv!
You need to log in before you can comment on or make changes to this bug.