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

1 accepted

1 vote
Answer accepted
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 12, 2018

Hi Dan,

The difference is manual customizations vs automated action.

A Workflow Trigger is listening for the commit then completing the workflow action defined, where smart commits are additional commands to trigger specific actions added into the commit itself.

Workflow Triggers automate the follow up action when a commit is done, useful when you want the same action applied with every commit

Smart commits allow for custom manual actions in the commit, useful for follow up actions when different action is needed for each commit, i.e. sometimes a transition is needed, and sometimes only a comment is needed.

Regards,
Earl

Deleted user
November 12, 2018

Many Thanks Earl! That's great. Smart commits is what we are after then.  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events