Hello everyone, I hope I am not reposting this issue. I am using Atlassian SDK and trying to create a new Issue via code. Every request works fine but not the create jira Issue (user credentials available can interrogate any issue etc.).
the request looks like the following:
var issueTypes = await jira.IssueTypes.GetIssueTypesForProjectAsync(Data.Constants.Jira.ProjectKey);
var priorities = await jira.Priorities.GetPrioritiesAsync();
var issue = jira.CreateIssue(Data.Constants.Jira.ProjectKey);
issue.Summary = jiraIssue.TicketSummary;
issue.Description = jiraIssue.Description;
issue.Assignee = user;
issue.Priority = priorities.FirstOrDefault(priority => priority.Name == jiraIssue.Priority);
issue.Type = issueTypes.FirstOrDefault(type => type.Name == "Kanban Task");
issue.Reporter = user;
jiraIssue.Components.ForEach(component => issue.Components.Add(component));
issue.Labels.Add(jiraIssue.Label);
return (true, await jira.Issues.CreateIssueAsync(issue, cancellationToken))
This requests is terminated with the following exception:
{“errorMessages”:[“Can not instantiate value of type [simple type, class com.atlassian.jira.rest.v2.issue.IssueUpdateBean] from JSON String; no single-String constructor/factory method”]}
I tried pretty much everything to solve this but i always receive this message, which i can’t really solve.
Does anyone have any hints on how to possibly solve this ?
Thank you.