I want to get all the history of a case. Is this possible through the api?
Execute the search
command, supplying the bug ID as the query (q
parameter) and asking for the events
column in the results (with the cols
parameter). The URL for this will look like:
http://server/api.asp?cmd=search&q=1000&cols=events&token=xxx
In the returned XML, the <case>
element (there will be just one if the bug ID is valid) will have an <events>
child element with <event>
children containing the history; the XML format is documented in the API documentation. If you just wanted to dump the comments on a case, for example, you could enumerate the results of the XPath query /response/cases/case/events/event/s
.