Fog Creek Software
Discussion Board

How do I...

... change the default 'my bugs' filter for all users?

Thanks in advance.

Alexandre B. Corrêa
Friday, April 19, 2002

You mean change it as in make it do something other than show the people their bugz?  The only way to do that is to edit the ASP code...

Michael H. Pryor
Friday, April 19, 2002

Actually he is talking about changing the default sorting for "My Bugz".
Of, course you can create your own filter with any sorting method, but changing "My Bugz" would be better because it's  an special filter you can always access with just one click.

Luciano R. M. Silva
Saturday, April 20, 2002

By the way, I just noticed it had been requested before:

Luciano R. M. Silva
Saturday, April 20, 2002

Yeah, I asked for this too.  It's not that I want My Bugz to display something other than my bugs, just that I want to be able to change the filter/sort criteria.  In my case, I want my bugs sorted by priority within fix-for version, not by project.

As noted above, we can always add a new filter (which is what I've done), but it would be better to be able to modify My Bugz to do what I want it to do.

Chris Dunford
Sunday, April 21, 2002

Hi Chis,

  My problem is the same as yours. 'My Bugz' default filter is not so useful for me, so I want to enchance it, sorting by Fix for, then for priority and finally for newest bug first.

Can I change this 'default My Bugz' filter editing current ASP code?

Alexandre B. Corrêa
Monday, April 22, 2002

Opss... I meant 'Hi Chris' :)

Alexandre B. Corrêa
Monday, April 22, 2002

Disclaimer: This isn't supported by FogCreek, but I know most of you asking for this are ASP pros, so you can easily hack it up... Here's some guidance for ya!

Yes, you can change this by editing the ASP source.  Currently thats the only way to do it...

Look for EZFilter in summary.asp... there is this line

        StoreFilter "ON", "OFF", -1, -1, -1, Request("ixPersonAssignedTo"), -1, -1, 3, 11, 8, 100, -1, -1, ""

Change this function call's parameters to whatever you like...

At the top of summary.asp you will see the declaration for StoreFilter:
    Sub StoreFilter( sOpenBugs, sClosedBugs, ixProject, ixArea, ixPersonOpenedBy, ixPersonAssignedTo, ixStatus, ixPriority, sort1, sort2, sort3, maxrecords, ixFixFor, openInLast, sFilterName )

The sort parameters are numbers... so to figure out what number you want to pass in there, see the FieldFromNumber function also in summary.asp..

    Function FieldFromNumber (i)

        Select Case i
            case "0":            FieldFromNumber = "Bug.ixBug"
            case "1":            FieldFromNumber = "Bug.fOpen"
            case "2":            FieldFromNumber = "Bug.sTitle"
            case "3":            FieldFromNumber = "Project.sProject"
            case "4":            FieldFromNumber = "Area.sArea"
            case "5":            FieldFromNumber = "Person1.sFullName"
            case "6":            FieldFromNumber = "Person.sFullName"
            case "7":            FieldFromNumber = "Bug.ixStatus"
            case "8":            FieldFromNumber = "Bug.ixPriority"
            case "9":            FieldFromNumber = "Bug.dtOpened DESC"
            case "10":            FieldFromNumber = "Bug.dtOpened"
            case "11":            FieldFromNumber = "FixFor.sFixFor"
            case "12":            FieldFromNumber = "Rank"

            ' If you add more sort/group by options, modify
            ' the grouping code below (search for BrblFlop!)
        End Select

    End Function

Michael H. Pryor
Monday, April 22, 2002

Thank you! It works very WELL.

Thanks again for your quick reply.

Alexandre B. Corrêa
Monday, April 22, 2002

*  Recent Topics

*  Fog Creek Home