public static string PostToJira(string testProject, string testCaseId, string jiraUsername, string jiraPassword, string jiraThreeLetterProjectId, string resultsFile, string jiraParentId) { var jiraTicketNumberWithAutomationResults = string.Empty; /* * START CREATE NEW JIRA TICKET FUNCTIONALITY * Need to add jiraThreeLetterProjectId to each TestMethod * Need to add jiraParentId to each TestMethod * Need to add _createJiraTicket to the top of each class */ try { var summaryOfTicket = string.Format("{0}{1}{2}{3}{4}{5}{6}{7}", "Automation results for ", testProject, ". Run Date: ", GenerateRandomStrings.GetTodaysDate(), ". BVT ID: ", testCaseId, ". Env: ", "Live"); // this is where i create the jira ticket. There is aTASK already created in Jira and I'm going to create a SUB-TASK jiraTicketNumberWithAutomationResults = JiraActions.CreateJiraTicket(jiraThreeLetterProjectId, summaryOfTicket, resultsFile, jiraParentId, jiraUsername, jiraPassword); } catch (Exception e) { jiraTicketNumberWithAutomationResults = "Could not create Jira ticket: " + e.Message.ToString(); } return(jiraTicketNumberWithAutomationResults); // END CREATE NEW JIRA TICKET FUNCTIONALITY }