Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

error when creating issue by jira rest api 3 Edited

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you