I am trying to create an issue from JIRA rest API . I am getting 415 error which I understood is a bad payload.
Below is the payload I am passing right now :
payload = json.dumps({
"fields": {
"project": {
"key": "Project Key"
},
"summary": "Modification in front end",
"description": {
"content": [
{
"content": [
{
"text": "Order entry fails when selecting supplier.",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
},
"issuetype": {
"name": "Bug"
},
"reporter": {
"id": "6017b01d332636006a6a15d9"
}
},
"update": {}
})
I suspect you have some unnecessary content in that expression, so perhaps prune it down to the minimum and then add back in what you need once it is working. Please take a look at this example for the syntax for setting some of the fields you reference in your code.
https://blog.developer.atlassian.com/creating-a-jira-cloud-issue-in-a-single-rest-call/
Kind regards,
Bill
AI-powered meeting notes keep work moving even if you’re out of the office. Enjoy your well-deserved time off and return refreshed, confident you’ll catch up in no time.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.