Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Error in custom search axis

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
Stefan Rusek Send private email
Thursday, April 23, 2009
 
 
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.
David Fullerton Send private email
Friday, April 24, 2009
 
 
Yeah, after I found this bug, I tried it with api.Database and it fixed the problem.
Stefan Rusek Send private email
Friday, April 24, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz