I am using Atlassian.SDK Jira SDk to connect Jira from my .NET application . To connect JIRA I have the following calls but it does not connect to Jira properly .I am getting unauthorized access exception
var jira = Jira.CreateRestClient("https://xxxxx.atlassian.net", "xxxxx.xx@xxx.com", "xxx@xxx");
CreateIssue(jira);
public async void CreateIssue(Jira jira) {
var issue = jira.CreateIssue("RBT");
issue.Type = "Bug";
issue.Priority = "Major";
issue.Summary = "Issue Summary";
await issue.SaveChangesAsync();
}
which is the correct way to establish the connection .Also,How can i query all the created Issues