Closed Bug 736597 Opened 13 years ago Closed 13 years ago

Expose what groups a bug is in

Categories

(Webtools Graveyard :: BzAPI, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: dmandelin, Assigned: gerv)

Details

AFAICT, none of the query methods return data that says what groups a bug is in. This would be helpful for tools that want to highlight bugs that need security triage.
Viewing an individual bug does show it (assuming you can see the bug at all): https://api-dev.bugzilla.mozilla.org/latest/bug/731178?username=gerv@mozilla.org&password=XXXX shows groups for me (although perhaps not for you, if you are not in bugzilla-security). You can get the groups results on a search by doing "&include_fields=_default,groups", although because this requires BzAPI to fetch each individual bug on the back end, performance might not be awesome. This is a limitation of the Bugzilla interface we are using. https://api-dev.bugzilla.mozilla.org/latest/bug?id=731178&username=gerv@mozilla.org&password=XXXXX&include_fields=_default,groups Gerv
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Thanks! I was only using searches--I didn't realize that they were different from single bugs, but now I understand why. I can give the search thing a try, but it sounds like I shouldn't expect high performance if I'm getting a lot of bugs back. I also came up with a workaround of running a query that gets just the bugs in that group, which I can then merge into the main query. It's good to have options, though.
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.