4

With the FogBugz UI I can enter something like type:"wiki" edited:"yesterday" into the search box and get back a nice listing of the wiki articles that changed.

I'd like do this programmatically via the XML API (version 7) but am not quite sure how to proceed. The cmd=search seems like it could be a natural for general searching but the documentation leads me to believe it is more case oriented. On the other hand, the Wikis section of the API doesn't seem to have any search facilities at all.

Anyone had any luck getting wiki change information out of the API?

Fog Creek Case FC1456291

flag

2 Answers

2

The current version of the XML API doesn't allow for searching non-cases. You can get a list of all Wikis with cmd=listWikis and get articles with cmd=listArticles (full docs here).

We have a case open to consider searching wikis via the XML API for a future release. Please up-vote this question to show your support for adding this feature.

link|flag
0

Has this feature been implemented?

We are using a public wiki to maintain and disseminate documentation for our software. We need to implement context-sensitive help in our software. We would like to be able to use an identifier for each form in the application, then have some code that uses the FB XML API to search the public wiki for that identifier and open the resulting articles for the user.

There seem to be a couple of problems with the API that prevent us from doing this:

(1) The API requires a login. We don't want to hard-code any login information into our code. The wiki itself is public, so we should be able to search it via the API without a login.

(2) The API does not allow for searching wiki articles.

I guess our only option at this point is to construct a search Uri:

http://fbwiki.someserver.com/fb/default.asp?ixWiki=99999&pg=pgSearchWiki&qWiki=search+for+this+identifier

It would be much better if the API supported this. I suppose we could create our own web service API that connects directly to the FB database, but we would prefer to avoid that if possible.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.