The FogBugz API call listFilters has output that is different from all the
other API calls. The data returned is not parameterized into tags. Instead
the data that is useful are attributes on teh parent tag. This means we need
to do some special processing to extract the data in a meaningful way.
Here is an example return by the API:
<filters>
<filter type="builtin" sFilter="ez">My Cases</filter>
<filter type="builtin" sFilter="inbox">Inbox</filter>
<filter type="shared" sFilter="7"><![CDATA[Active Bugs Outline]]></filter>
<filter type="shared" sFilter="9"><![CDATA[Active Requests Outline]]></filter>
<filter type="shared" sFilter="13"><![CDATA[All Active]]></filter>
</filters>
The XML attribute sFilter is what needs to be passed as an argument to
The FogBugz API call setCurrentFilter. To simplify and make the API uniform
the FogBugz-ORM wrapper API converts this into a standardized structure.
The FogBugz ORM wrapper API call fborm.commands.setCurrentFilter()
has also been extended to support a number of inputs, including this structure.
See fborm.commands.listFilters() ,
fborm.commands.setCurrentFilter() and
FogBugz API - Filters for more information.