If you’re new to development with the Bugzilla API, this is the post for you! I will be sharing some pointers and tips to getting started with the Bugzilla API in your code.
For reference, the official Bugzilla REST API is here.
- Make sure you have requests set up in your preferred environment. In my case, that meant importing Python requests.
- If you are doing queries that involve logging in, remember to create a mock Bugzilla account. If you plan to be hosting your code on Github on a public repo, your credentials will be exposed to the public. Creating an account that you don’t mind people seeing (and potentially using).
- For combining multiple queries, it may be more complicated. Go to the Bugzilla website and perform your desired search. Then, click on the REST API button at the bottom of the page. It will provide you with a URL that you can ‘Get’.
For example, I was looking for bugs in Firefox that are Tracking 39+ and have a crash signature, and I wanted the JSON that gets returned to contain the ID and crash signatures of the bug.
That is how you would go about it! Once you do this frequently, it will be easier to piece queries together but for now the REST API button is your friend when piecing them together.
That’s all for now, let me know if you have any other questions. And happy coding!