Forums

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

error when creating issue by jira rest api 3

Satyen Bhogun
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!
May 26, 2021

This is my error message "description":"Operation value must be a string"
This is the documentation i am reading from , In the documentation we have examples for node.js and java, 
Using the node js example i have been able to test the create Issue through SOAPUI, the issue has been created successfully.

I've used the sample java code provided from example 

 

ObjectNode description = fields.putObject("description");
{
description.put("type", "doc");
description.put("version", 1);
ArrayNode content = description.putArray("content");
ObjectNode content0 = content.addObject();
{
content0.put("type", "paragraph");
ArrayNode content = content0.putArray("content");
ObjectNode content0 = content.addObject();
{
content0.put("text", "Order entry fails when selecting supplier.");
content0.put("type", "text");
}
}
}

This is my error message when executing the java code :
{"errorMessages":[],"errors":{"description":"Operation value must be a string"}}.

How can i pinpoint the exact problem ?

Note i've printed my payload in java just before making the call to rest API, I've copy pasted the JSON object generated from console into SOAPUI and strangely the create Issue works .
This means that i am constructing the request properly.

Has anyone else encountered the same issue ?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events