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 ?