Ravi Nankani
Ravi Nankani

Reputation: 599

get xml data from bugzilla url

I am trying to get the xml data from the buglist.cgi file without success. After i have got the bugs I need in the form of xml displayed,

buglist.cgi?xyz_param=xyz_value&ctype=csv

gives me a csv of the values but,

buglist.cgi?xyz_param=xyz_value&ctype=xml

gives me this error

The requested format does not exist with a content type of xml.

However there is a small xml icon at the bottom of buglist page, when I click it , it generates an xml output that i want. Am I missing something here?

Bugzilla version : 3.4.3

Thanks Ravi

Upvotes: 3

Views: 1413

Answers (2)

Fredrik Jonson
Fredrik Jonson

Reputation: 11

Adding the query parameter ctype=rdf will give you xml formatted output for the query.

Upvotes: 1

Gavin S
Gavin S

Reputation: 738

Try this:

buglist.cgi?xyz_param=xyz_value&ctype=rss

The rss format is xml. So do the search you want to get the results for and then add '&ctype=rss' to the end and that should get you xml output of that query.

Upvotes: 0

Related Questions