Home Home
  login

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.




Creating filters by API

items
api

Bi,

Im trying to iterate through every issue within every project and use the code below.

It seems that I cant use this method for every project - for some of the projects I get zero issues returned (issueService.GetFilteredIssues(issueFilter)) - but there is active issues in the specific project.

please advice . ( the complete code is available at http://geminimailmachine.codeplex.com/)

        try
        {
            serviceManager = this.GeminiInitialize();
            IssuesFilterEN filter = new IssuesFilterEN();

            IssuesService issueService = serviceManager.IssuesService;

            projects = serviceManager.ProjectsService.GetProjects();

            foreach (ProjectEN project in projects)
            {
                IssuesFilterEN issueFilter = new IssuesFilterEN();
                issueFilter.ProjectID = project.ProjectID.ToString();
                issueFilter.ExcludeClosed = true;
                issues = issueService.GetFilteredIssues(issueFilter);
                foreach (IssueEN issue in issues)
                {
Modist
· 1
Modist
Replies (5)
helpful
0
not helpful

Try setting the userid on the filter:

issueFilter.UserID = serviceManager.UsersService.WhoAmI();

Also, you can get all issues back by putting the project ids together: 10|20|21....


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Hi Mark,

Good suggestion , but didn't work (and the user have full rights to the project.

instead of using '10|20|21...' - is it possible to use a wildcard like '*' - I need all the projects.

Kind regards

Morten


Modist
· 1
Modist
helpful
0
not helpful

It is not possile to use a wilcard at the moment. Are you sure that the user can see all items in these projects (do you see it on the web)?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

The user which credentials are used for the servicemanager have full access to the project in question - and can see the all issues through the webinterface


Modist
· 1
Modist
helpful
0
not helpful

Please send us your database (support at countersoft dot com).


Mark Wing
· 9108
Mark Wing