Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Problem retrieving issues using GetFilteredIssues and GeminiWSE.asmx

web-app

I am using the Gemini web services to retrieve some statistics about defects in a certain status that we use to generate an email.  Here is the code that I’m using to bring back all the issues in that particular status.  It doesn’t appear to be working correctly.  What I want out of this is all issues in a particular Issue Status.

IssuesFilterEN filter = new IssuesFilterEN();

filter.ProjectID = 2;

filter.IssueStatus = "2|";

filter.UserID = 3;

filter.Resources = "0|";

filter.Components = "0|";

filter.ExcludeClosed = true;

filter.IssuePriorities = "0|";

filter.IssueResolutions = "0|";

filter.IssueTypes = "0|";

filter.RiskLevels = "0|";

filter.SearchKeywords = "";

filter.SystemFilter = IssuesFilterEN.SystemFilterTypes.NoType;

filter.Versions = "0|";

filter.IssueID = "";

filter.ReportedByUserName = "";

filter.CreatedAfter = "";

filter.CreatedBefore = "";

filter.RevisedAfter = "";

filter.RevisedBefore = "";

filter.SortOrder = GeminiConstant.SortDirection.Ascending;

ArrayList issues = gemini.GetFilteredIssues(ACCESSCODE, filter);

I imagine that there is something I’m not setting in the filter properties to get my desired results.  Please help.

Thanks,

Steve

PS…we are using 2.0.2 and GeminiWSE.asmx for the web services

informa
· 1
informa
Replies (4)
helpful
0
not helpful

Do you get any errors?

You should use Gemini.asnx, GeminiWSE is using WSE for authentication and some tokens need to be setup. You can download a sample that shows how to use WSE: http://www.countersoft.com/downloads/WebServicesSample.zip

Also, please use one of the static create methods of the IssuesFilterEN.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

When i use Gemini.asmx I get the same results.  There are no errors returned by the web service.  The call just returns an empty ArrayList.  I currently have 24 issues listed in status 3 which is why i'm putting filter.IssueStatus = "3|"; in the code.  I'd like to get all 24 of those issues back, however, the ArrayList returned by GetFilteredIssues is empty.


informa
· 1
informa
helpful
0
not helpful

According to your original code your issue status filter was wrong.

Below is a sample:

IssuesFilterEN filter=new IssuesFilterEN();

filter.ProjectID=2;  // Make sure you put the correct projcet id

filter.UserID = 1;  // Make sure you put the correct user id

filter.Resources= ="-1|"; // All

filter.Components = ="0|"; // All

filter.ExcludeClosed = true;

filter.IssuePriorities = "0|";

filter.IssueResolutions = "0|";

filter.IssueStatus = "3|";

filter.IssueTypes = "0|";

filter.RiskLevels = "0|";

filter.SearchKeywords = "";

filter.SystemFilter = IssuesFilterEN.SystemFilterTypes.NoType

filter.Versions = "-1|";

filter.IssueID = "";

filter.ReportedByUserName = "";

filter.CreatedAfter = "";

filter.CreatedBefore = "";

filter.RevisedAfter = "";

filter.RevisedBefore = "";

filter.SortOrder= GeminiConstant.SortDirection.Ascending;

then run the web service using this filter.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks for the help, I updated the code and it worked as desired.


informa
· 1
informa