SubmitBug() 공개 메소드

Creates a new JIRA issue (a bug).
public SubmitBug ( string projectKey, string bugTitle, string bugDescription, int bugPriority, System.DateTime bugCreatedDate, string bugAuthor, string bugAssignedTo, List bugAttachments, string &error ) : string
projectKey string The projects key e.g. TSCB.
bugTitle string The title of the bug.
bugDescription string The detailed description of the bug.
bugPriority int The priority of the bug.
bugCreatedDate System.DateTime The date the bug was created.
bugAuthor string The author of the bug.
bugAssignedTo string The person/group the bug is assigned to.
bugAttachments List List of files to attach to the bug.
error string Any errors during bug creation are written here.
리턴 string
예제 #1
0
        public string SubmitBug(IBug bug)
#endif
        {
            string error;

            JiraComm jiraComm = new JiraComm(activeJiraConnection.ServerName, activeJiraConnection.User, activeJiraConnection.Password);
            string   bugID    = jiraComm.SubmitBug(activeJiraConnection.SelectedProject.key, bug.Title, bug.Description, bug.Priority,
                                                   bug.CreatedDate, bug.Author, bug.AssignedTo, bug.Attachments, out error);

            this.ErrorMessage = error;
#if Use2014_1_421
            // JIRA returns something like TSCB-14.
            // Return only the integer portion (until Test Studio is changed to take a string).
            return(int.Parse(bugID.Substring(bugID.IndexOf('-'))));
#else
            return(bugID);
#endif
        }
        public string SubmitBug(IBug bug)
#endif
        {
            string error;

            JiraComm jiraComm = new JiraComm(activeJiraConnection.ServerName, activeJiraConnection.User, activeJiraConnection.Password);
            string bugID = jiraComm.SubmitBug(activeJiraConnection.SelectedProject.key, bug.Title, bug.Description, bug.Priority,
                bug.CreatedDate, bug.Author, bug.AssignedTo, bug.Attachments, out error);
            this.ErrorMessage = error;
#if Use2014_1_421
            // JIRA returns something like TSCB-14.
            // Return only the integer portion (until Test Studio is changed to take a string).
            return int.Parse(bugID.Substring(bugID.IndexOf('-')));
#else
            return bugID;
#endif
        }