error 400 bad request when creating issue

when creating issue with the following json sing Rest API , I got error 400 bad request

{"fields" : { "project":{"key":'Prj804255'},"assignee":{"name":"hassan"},"reporter":{"name":"hassan"},"issuetype":{"name":"Bug"},"description":"sdf","summary":"sdf","duedate":"10/10/2010 12:00:00 AM","customfield_10502":"GWA804255-2","customfield_10201":{"value":"Software Engineering"},"priority":{"name":"Major"},"customfield_13906":{"value":"SW - Engineering" ,"child":{"value":"Design"}},"timetracking":{ "originalEstimate":"1w 1d 1h"  }} }

2 answers

0 vote

You'll need to show us the rest of what you're doing.  Your content looks fine, but a bad request is more likely to be caused by how you are posting, or that you're posting to an end point that does not exist.

@Nic Brough [Adaptavist] , I'm using post using this URL : 
http://jira.company.com/rest/api/2/issue/

and server URL is valid

And the rest of the command?

Is the issue with the single quotes here?

"key":'Prj804255'

I tried single and double , same problem 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

134 views 0 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you