Hi,
I am new to the community and using Atlassian sdk.13.0.0.
I can update a single value custome field by Atlassian.Net sdk. I have used the following code.
var _issue = Jira.GetIssue(mykey);
_issue[“myfieldname”] = “my value”;
_issue.SaveChanges();
This works fine. However, while I tried to update a multi-value custome field as follows,
var _issue = Jira.GetIssue(mykey);
_issue.CustomerFields.AddArray(myfieldName, fieldValue.ToArray())
_issue.SaveChanges();
then i got the following error “Can not add property customer_xxx to Newtonssoft.Json.Linq.JObject. Property with the same name already exists on object.”
If i pass the value like below;
_issue.CustomFields[fieldname].Values = fieldValues.ToArray();
It gives the following error " Response status code: 400. Response Content: {“errorMessages”:, “errors”:{cutsomefield_xxx": data was not an array"}})
Any insights appreciated. Thanks in advance.