Query bugzilla from lisp.
This code is aimed at the basic query of bugzilla. I dont know if its suitable for your needs. It has been developed against the Red Hat bugzilla instance version 5.0.4.rh86.
There is no need to authenticate to query public bugs.
Otherwise, you will need to manually set the api-token.
Create a bugzilla api-token.
(defparameter bugzilla:*api-token* "secret")
I reccomend you source this from the environment variable so that its not stored directly with your code or use your cloudprovider secrets API to access/set it.
Gets a specific bug:
(bugzilla:get-bug 1234)
Get a list of bugs:
(bugzilla:get-bugs '(1234 4567 7890))
Update a existing bugs specific field:
(bugzilla:update-bug 2210552 :data '(("summary" . "Test Please ignore")))
Get a list of comments for a bug:
(bugzilla:get-comments 2210552)
Bugzilla also has the option for extra fields, which I have not tested yet.
TODO:
- Determine how to lookup bug by alias.
- Find out how to deal with ‘extra’ fields which are visible to specific users.