-
Notifications
You must be signed in to change notification settings - Fork 8
search
austinmoody edited this page Sep 12, 2010
·
2 revisions
You can search for cases using a command similar to:
mycases = fb.search("assigned to:\"Austin Moody\"")
What is returned is a Hash (keyed by case #).
You can pass a parameter to the search function to specify which attributes of the case you want returned. This is to be passed as an array with attributes determined by the FogBugz API. Only want the case title and who it is assigned to? You could call search like:
api_cases = fb.search("API",["sStatus","sPersonAssignedTo"])
This would return a Hash of cases like:
{
"567" =>
{
"ixBug" => "567",
"sTitle" => "This is a FogBugz case title",
"sPersonAssignedTo" => "Austin Moody"
}
"678" =>
{
"ixBug" => "678",
"sTitle" => "Question about ECS",
"sPersonAssignedTo" => "Matt Morrell"
}
}
ixBug is always passed as this is the key for the returned Hash. If no specification is given for the columns to return then all columns as defined by the FogBugz API are returned.