public void CreateNewIssue(AccountData account, ProjectData projectData, Mantis.IssueData issue)
        {
            issue.project    = new Mantis.ObjectRef();
            issue.project.id = projectData.Id;

            SOAPClient.mc_issue_add(account.Username, account.Password, issue);
        }
Exemple #2
0
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData)
 {
     Mantis.IssueData issue = new Mantis.IssueData();
     issue.description = issueData.Description;
     issue.category    = issueData.Category;
     issue.project     = new Mantis.ObjectRef();
     issue.project.id  = project.Id;
     client.mc_issue_add(account.Username, account.Password, issue);
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 //создание баг репорта
 public void CreateNewIssue(AccountData account, ProjectData project, IssueData issueData)
 {
     Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient();
     Mantis.IssueData issue = new Mantis.IssueData
     {
         summary     = issueData.Summary,
         description = issueData.Description,
         category    = issueData.Category,
         project     = new Mantis.ObjectRef {
             id = project.Id
         }
     };
     client.mc_issue_add(account.Username, account.Password, issue);
 }
Exemple #5
0
        public void AddMewIssue()
        {
            AccountData account = new AccountData()
            {
                Username = "******",
                Password = "******"
            };

            ProjectData projectData = new ProjectData()
            {
                Id = "23"
            };

            Mantis.IssueData issueData = new Mantis.IssueData()
            {
                summary = "some text", description = "another piece of text", category = "General"
            };

            app.API.CreateNewIssue(account, projectData, issueData);
        }
Exemple #6
0
        public static List <ProjectData> GetALLFromWebServer(AccountData account)
        {
            Mantis.MantisConnectPortTypeClient client = new Mantis.MantisConnectPortTypeClient();

            Mantis.IssueData     issue = new Mantis.IssueData();
            Mantis.ProjectData[] projectsFromMantis = client.mc_projects_get_user_accessible(account.Name, account.Password);

            List <ProjectData> projects = new List <ProjectData>();

            for (var i = 0; i < projectsFromMantis.Length; i++)
            {
                projects.Add(new ProjectData()
                {
                    Name        = projectsFromMantis[i].name,
                    Description = projectsFromMantis[i].description,
                    Id          = projectsFromMantis[i].id
                });
            }
            return(projects);
        }