public SubmitBug ( string projectKey, string bugTitle, string bugDescription, int bugPriority, System.DateTime bugCreatedDate, string bugAuthor, string bugAssignedTo, List |
||
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. |
return | string |
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 }