tags:

views:

104

answers:

2

I want to get all the history of a case. Is this possible through the api?

+1  A: 

The folks at Fog Creek Software have started a fantastic "StackExchange" using, essentially, the same software as Stack Overflow. You might want to check it out.

Fogbugz Knowledge Exchange

Robert Cartaino
+1  A: 

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.

Bradley Grainger