Reputation: 14820
I want to get all the history of a case. Is this possible through the api?
Upvotes: 2
Views: 886
Reputation: 28207
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
.
Upvotes: 2
Reputation: 28122
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.
Upvotes: 1