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.




Retrieving a list of open issues for a specific user

api

I am trying to use IssueFilterEN to retrieve all open issues for a specific user. What is the correct filter string to use to retrieve ALL projects??.

IssuesFilterEN ife = new IssuesFilterEN(); ife.UserID = UserID; ife.ExcludeClosed = true; ife.ProjectID = "0|";

I have tried "0|" , "-1" , "" , "0", "Any" but everything return a zero based array. If I specfiy s specific project id (i.e "17") it works.

Is there an API reference for Gemini!?

Many thanks,

David.

David.Nuttall
· 1
David.Nuttall
Replies (2)
helpful
0
not helpful
ANSWER

You have to specify the project id(s) to search on:

            ServiceManager sm = new ServiceManager("http://localhost/gemini", "manager", "manager", "", false);
            IssuesFilterEN filter = new IssuesFilterEN();

            StringBuilder buffer = new StringBuilder();
            foreach (ProjectEN prj in sm.UsersService.WhoAmI().AccessibleActiveProjects)
            {
                buffer.Append(prj.ProjectID);
                buffer.Append('|');
            }

            filter.ProjectID = buffer.ToString();
            filter.UserID = sm.IssuesService.WhoAmI().UserID;
            filter.ExcludeClosed = true;
            filter.Resources = filter.UserID.ToString();

            IssueEN[] issues = sm.IssuesService.GetFilteredIssues(filter);


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Ok Mark thanks. I just thought there might be a default rather than enumerating the project collection (as there are for other properties of the IssueFilterEN class)


David.Nuttall
· 1
David.Nuttall