public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData) { // Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient(); Mantis.IssueData issue = new Mantis.IssueData(); issue.summary = issueData.Summary; issue.description = issueData.Description; issue.category = issueData.Category; issue.project = new Mantis.ObjectRef(); issue.project.id = project.Id; client.mc_issue_add(account.Name, account.Password, issue); }
public void AddNewIssure() { AccountData account = new AccountData() { Name = "administrator", Password = "******" }; ProjectData project = new ProjectData() { Id = "27" }; IssueData issueData = new IssueData() { Summary = "short text", Description = "long text", Category = "General" }; app.API.CreateNewIssue(account, project, issueData); }