1

Hi,

I am building a calendar plugin for FogBugz. One of the items displayed on the calendar is uncompleted milestones. When the user clicks on a milestone, I want to show all of the associated cases in the List Cases page. I would like to do this all from the URL (so I can throw it in an href) rather than saving a custom filter because then I have to hard-code the filter index. Something like the following would be great:

http://[your_fogbugz]/default.asp?pgx=[something]&ixFixFor=[ixFixFor]

Is this possible? Thanks, Ian

flag

1 Answer

2

Above the cases list, click More then Permanent Link. It produces a filter URL like this:

<yourserverurl>/default.asp?pre=preSaveFilter&fOpenBugs=ON&ixProject=4&ixFixFor=10&sort1=-1&sort2=-1&sort3=-1&fGridView=1&sView=grid-outline&iTypeOrder=1,29,2,23,4,22,6,7,16

Just try it out!

When you use 'search' instead of filtering, it looks like this:

<yourserver>/default.asp?pg=pgList&searchFor=project%3a%22yourproject%22%20milestone%3a%22yourmilestone%22&search=1

Searching will not change your user filter.

Use the XML API (with the cols parameter) to specify columns returned by a search.

link|flag
Thanks Michel. This almost works exactly the way I want. Unfortunately, it also changes the user's current filter. Is there a alternate version of this URL that does not save this filter as the user's current filter? And is there documentation about the different options for the "pre" parameter? – Ian Oct 10 at 17:44
@Ian updated! I cannot find pre specs, but for the search axes see fogbugz.stackexchange.com/questions/4399/… – Michel de Ruiter Oct 10 at 18:21
Perfect! Can I bug you for 1 more thing? I'd like to be able to specify which columns are displayed in the search results. – Ian Oct 15 at 18:32
@Ian: just add the columns before you click Permanent Link. That doesn't work with searches however; those always display the columns of the active (last used) filter. :-( – Michel de Ruiter Oct 15 at 20:26

Your Answer

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