This 1.0x branch is for the built in bugzilla rest interface
The built in rest api is not backwards compatible with the original bugzilla rest extension bzapi.
npm install bz
and use with
var bz = require("bz")
var bugzilla = bz;bugzilla;
creates a new Bugzilla API client, optionally takes options like the REST API url, username + password, and timeout in milliseconds:
var bugzilla = bz;
Each method takes a callback that takes an error message (if any kind of error occurs) as its first argument, and the expected return data as its second.
retrieves a bug given a bug id.
creates a bug and returns the id of the newly created bug.
updateBug(id, bug, callback)
updates a bug with new bug info.
retrieves the comments for a bug.
addComment(id, comment, callback)
adds a comment to a bug.
retrieves array of changes for a bug.
retrieves array of attachments for a bug.
createAttachment(bugId, attachment, callback)
creates an attachment on a bug, and returns the id of the newly created attachment.
gets an attachment given an attachment id.
updateAttachment(attachId, attachment, callback)
updates the attachment.
searches for users by string, matching against users' names or real names.
retrieves a user given a user id.
gets the configuration of this Bugzilla server.
You need vagrant installed.
vagrant upmake test
This will run a set of integration tests on a real bugzilla (bmo variant) server.