I created a .Net Core API project and installed Atlassian.SDK 10.5.0.
Copied a sample code from the documentation for creating an issue:
var jira = Jira.CreateRestClient("http://myurl.atlassian.net", "email@example.com", "p@ssw0rd"); var issue = jira.CreateIssue("Test Project"); issue.Type = "Bug"; issue.Priority = "Major"; issue.Summary = "Issue Summary"; await issue.SaveChangesAsync();
When I run the code I receive an error message:
You are not authenticated. Authentication required to perform this operation.
When I run a ‘get issue’ example, it works even without username & password.
var jira = Jira.CreateRestClient("http://myurl.atlassian.net"); Issue issue = await jira.Issues.GetIssueAsync("XX-00"); return issue.Summary;
I tried my email address and the username (I found it in the csv export of all users) and both gave the same error message.