Widget:Bugzilla
This widget is for embedding a tabular view of a Bugzilla query. The bug fields and their types are found in the REST API documentation: https://bugzilla.readthedocs.io/en/latest/api/core/v1/bug.html
The widget makes use of the Tabulator JavaScript library.
An example use of the widget:
{{#widget:bugzilla |first |tableid=skillCpp |query={ "include_fields": "id summary status", "status": ["NEW", "REOPENED", "ASSIGNED"], "n1": "1", "f1": "keywords", "o1": "anywords", "v1": "needsDevEval needsUXEval", "f2": "keywords", "o2": "allwords", "v2": "easyHack difficultyBeginner skillCpp", "order": "bug_id", } }}
Multiple widgets can be used per page, but the first one should be called with the parameter ”first”. This is so the JavaScript library and CSS styles will be loaded only once per page.
Use a unique identifier, ”tableid”, for each table per page.
In the query, you can define the fields that will be returned with ”include_fields”. The fields for id and summary will always be present.
The type of the field ”status” is a string, so in the produced query URL, multiple input values will result in repeated field names: status&status=NEW&status=REOPENED&status=ASSIGNED Multiple values are passed to a string field with an array syntax.
You can produce complex queries by grouping fields with numeric identifiers.
”n1”: ”1” means ”Not” as in the checkbox in Custom search.
”f1” is for ”field”, ”o1” is for ”option” and ”v1” is for ”value”.
When you put all the fields identified with number 1 together, it literally means ”Not; keywords; contains any of the words; wordOne wordTwo”.
The type of the keywords field is array and multiple values are passed to it separated by spaces.
The produced URL for this query would be
https://bugs.documentfoundation.org/rest/bug?include_fields=id,summary,status&status=NEW&status=REOPENED&status=ASSIGNED&n1=1&f1=keywords&o1=anywords&v1=needsDevEval,needsUXEval&f2=keywords&o2=allwords&v2=easyHack,difficultyBeginner,skillCpp&order=bug_id