I'm getting an error with the following code. Error: "Unable to upload attachments to server, issue has not been created.". Nothing in the error message helps troubleshoot the issue.
byte[] file = File.ReadAllBytes($@{MyImageLocation}); // Local path to .jpg
Issue issue = _jiraClient.CreateIssue("AB");
issue.Summary = "Hello World"
issue.Priority = "Medium"
issue.Description = "Testing attachments"
issue.AddAttachment("MyImage.jpg", file);
issue.Type = "Bug";
await issue.SaveChangesAsync();
My Jira client connection is working. I can create work items without attachments. I can attach to work items manually through the Jira web interface. The image is small.