Forums

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

Getting Bad request 400 using REST API POST Call ( Using Salesforce Apex)

Vigneshwar Kotha
November 3, 2023

I am getting a Bad Request with an Error Code 400 issue. find the below Json Request.

Working in UAT but not in production. Please let me know if any suggestions.

{
"fields": {
"summary": "Testing 123 - Push to Jira",
"reporter": {
"id": "5fb422c74a09640069d1***"
},
"project": {
"id": "10297"
},
"issuetype": {
"id": "10004"
},
"description": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Problem Description:",
"marks": [
{
"type": "strong"
}
]
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Delete when done"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Steps to Reproduce:",
"marks": [
{
"type": "strong"
}
]
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "N/A"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Desired Result:",
"marks": [
{
"type": "strong"
}
]
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "N/A"
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Actual Result:",
"marks": [
{
"type": "strong"
}
]
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "N/A"
}
]
}
]
},
"customfield_10204": "PR-0004956",
"customfield_10172": {
"value": "Moderate"
}
}
}

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 11, 2018

The error message is saying that Jira is not running there.  You will need to read the application log file to find out why it has stopped.

Look for <jira home>/logs/atlassian-jira.log first, and if that does not tell you why it has stopped, <jira install>/log/catalina.out

Suggest an answer

Log in or Sign up to answer