Plugin Developer DiscussionDiscussion for FogBugz Plugin developers |
||
Hello, I'm having some problems with
public CSelectQuery SearchAxisQuery(string sAxis, SearchType nType, string sValue) and its that I have a field named "reproducible", and when i search for reproducible:"Mac" the SearchType is of type Discuss... How can I change that type for Bug? .. Warmest regards! Juan
Hi Juan-
I think you should get axis queries for each of the search types when you do an axis search. The example plugin ProjectBacklog, for instance, just ignores any SearchAxisQuery calls that it gets on types other than Bug, and waits for Bug. This is the first line of that function: if (nType != SearchType.Bug) return null; You can probably do the same. Does that make sense? Thanks! Brett
Sorry Brett, that's not what I'm asking :(
I have this line: if (nType != SearchType.Bug) return null; the problem is that nType is of Type discussion, and I'm willing it to be of Type bug.. how do I change the type of the nType on the search box? Hope it makes sense :) Juan
Hi Juan-
Sorry, I think maybe we should back up and you should tell me what it is you're trying to do at a higher level. It sounds like you want to write a plugin that makes FogBugz search for Bugs instead of DiscussTopics when the user was trying to search for DiscussTopics -- is that right? Thanks! Brett |
Powered by FogBugz