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 an issue programmatically

api

Hi, We currently have Gemini version v3.7.2 Build 2784 installed on our server. I am trying to programmatically create a ticket using a WPF application.

I originally added version 4.1.1 of the files as references, CounterSoft.Gemini.Commons.dll CounterSoft.Gemini.WebServices.dll Newtonsoft.Json.dll

With that, I was able to programatically create a ticket. However, using Gemini (using the website, I couldn't add comments to it or edit the ticket).

I cannot find the 3.7 version for CounterSoft.Gemini.WebServices.dll on the server.

Where can I get the correct version of these files? Thanks, Indu

Indu
· 1
Indu
Replies (2)
helpful
0
not helpful
ANSWER

Email the support team.


Harvey Kandola
· 212
Harvey Kandola
helpful
0
not helpful

Hi, Thank you. I reached out to the support team and i now compiled the app with the version 3.7.2. I am running into the same issue. I am able to create the ticket from my program. But unable to edit it or add comments to it from the web.

I checked the server and it has ALL verbs as described in Enabling the API document.

Here's the code:

 ServiceManager serviceManager = new ServiceManager("http://gemini.mycompany.com", "", "", "", true);
                var adtProject = serviceManager.ProjectsService.GetProject("GEM-0001");
                var user = serviceManager.UsersService.GetUserByName("domain\\user");

                var issueEntity = new IssueEN();
                issueEntity.ProjectID = adtProject.ProjectID;
                issueEntity.IssueType = 54; // 54 is specific issue type
                issueEntity.IssuePriority = 1; // 1 = Low, 2 = Medium, 3 = High
                issueEntity.IssueSeverity = 1; // 1=Minimal, 2 = Moderate, 3 = Major
                issueEntity.RiskLevel = 1; // 1=No Risk, 2 = Low, 3 = Medium, 4 = High
                issueEntity.ReportedBy = user.UserID;
                issueEntity.StartDate = DateTime.Now;                  
                issueEntity.IssueSummary = "This is a test";
                issueEntity.IssueLongDesc = "Please disregard this ticket. ";

issueEntity = serviceManager.IssuesService.CreateIssue(issueEntity);

Again, code works. It creates issue. I just can't modify it from the web or add comments to it. Where do i need to check on the logs on the failure to edit or add the comment?

Thanks, Indu


Indu
· 1
Indu