Getting issues with multiple search parameters
I'm new to Gemini API and I'm trying to search for Issues with multiple values in the criteria but it seems that IssuesFilterEN object can only accept 1 value. Is that right? The web interface allows user to select multiple values in each filter like multiple Status and multiple Resources.
Here's my code:
ServiceManager serviceMrg = new ServiceManager(gemURL, userName, pwd, apiKey, false);
IssuesFilterEN issueFilter = new IssuesFilterEN();
issueFiler.ProjectID = "1";
issueFiler.SearchKeywords = "test";
issueFiler.ExcludeClosed = true;
//this works
issueFiler.IssueStatus = "1";
issueFiler.Resources = "2";
//but i want to search issues that has IssueStatus of 1 or 3 for Resources 1 or 2, is this possible?
//issueFiler.IssueStatus = "1,3";
//issueFiler.Resources = "1,2";
IssueEN[] issues = serviceMrg.IssuesService.GetFilteredIssues(issueFilter);
Thanks!
Marie
· 1 |
|
Saturday, September 18, 2010, 12:19:28 AM |