Plugin Developer DiscussionDiscussion for FogBugz Plugin developers |
||
The following code:
var qk = api.Database.NewSelectQuery("Kanban"); qk.AddWhere(string.Join(" OR ", conditions.ToArray())); qk.AddSelect("ixBug"); var q = api.Bug.NewBugQuery(); q.AddWhereIn("ixBug", qk); return q; Throws the following exception when I try to search with it: FogCreek.FogBugz.FogBugzException: Parameter not found: BUGVIEW_ixPerson at Wasabi.Runtime.Dynamic.Invoke(String memberType, Object target, String member, Object[] args) in c:\src\Wasabi\Wasabi.Runtime\Dynamic.cs:line 62 at Wasabi.Runtime.Dynamic.Invoke[T](String memberType, Object target, String member, Object[] args) in c:\src\Wasabi\Wasabi.Runtime\Dynamic.cs:line 76 at FogCreek.FogBugz.__Global.CreateBugOutline(ListDetails oDetails) in c:\Program Files (x86)\FogBugz\src-Website\list.was:line 1013
This is a known bug where parameters don't work in search queries. It should be fixed before release. In the meantime you can change it to
var qk = api.Database.NewSelectQuery("Kanban"); qk.AddWhere(string.Join(" OR ", conditions.ToArray())); qk.AddSelect("ixBug"); var q = api.Database.NewSelectQuery("Bug"); q.AddSelect("Bug.ixBug") q.AddWhereIn("ixBug", qk); return q; and this should return the same thing. |
Powered by FogBugz