Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

.net sdk data was not an array

Nail Goksel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 26, 2023

Hello,

I am using Atlassian.SDK version 13.0 in .net. During an issue creation in an automation job, I needed to update some custom fields:

var issue = jira.CreateIssue(fields);

issue.Type = "Risk";
ComparableString comp = new ComparableString("Test");
issue["Risk Source"] = comp;
......./Doing other stuff/....

var createdIssue = await issue.SaveChangesAsync();

 

with above code, I get the error below

Response Status Code: 400. Response Content: {"errorMessages":[],"errors":{"customfield_XXX":"data was not an array"}}

But when I look the issue object details, in Customfields of the issue, I can see a string array created with my provided string in it. 

Can you guide me what am I doing wrong or is there a bug in the SDK?

Best regards

0 answers

Suggest an answer

Log in or Sign up to answer