Forums

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

Can not instantiate value of type [simple type, class com.atlassian.jira.rest.api.issue.FieldOperati

Deleted user March 30, 2018

Hi, I am getting below mentioned error when i tried to call date select in jira issue creation. could someone help me to solve this issue

JSON BLOB

{
"update": {
"summary": [{
"set": "Testing an API"
}],

"duedate" :"2011-03-11",

"description": [{

"set": "Lorem Ipsum"
}]
}
}

Issue

{"errorMessages":["Can not instantiate value of type [simple type, class com.atlassian.jira.rest.api.issue.FieldOperation] from JSON String; no single-String constructor/factory method (through reference chain: com.atlassian.jira.rest.v2.issue.IssueUpdateBean[\"update\"])"]}

 

1 answer

0 votes
J van Leeuwen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 8, 2018

Hi Jayakrishnan  - 

A bit late, but it appears that this error is typically caused by syntax issues. I'd recommend taking a look at the following community post: Odd error while creating issue from REST. You may also want to look into using a JSON Builder like https://jsoneditoronline.org/ to help craft the JSON. 

Hope it helps! 

Jennifer

Jon Langevin
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!
February 22, 2022

If you checked the JSON blob posted by OP, you'd see it's valid JSON, so a syntax issue should not be the case.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events