Andreas Haferburg
Andreas Haferburg

Reputation: 5520

How can I query custom fields with the Fogbugz API?

I'm using the Python fogbugz module to access the XML API:

from fogbugz import FogBugz
fb = FogBugz(url=S_FOGBUGZ_URL, token=TOKEN)
respBug = fb.search(
    q=str(ixBug),
    cols="sTitle,sPersonAssignedTo,sProject,sArea,sCategory,sPriority,sStatus,events",
)

How can I add a custom field to the list of columns?

Upvotes: 0

Views: 162

Answers (1)

Andreas Haferburg
Andreas Haferburg

Reputation: 5520

Use customFields as column name. The XML in the response is pretty messed up though, with weird tag names.

I found the answer by looking at the correspondence of the Firefox web client with the server.

Upvotes: 0

Related Questions