I’m working on a Salesforce - Jira integration. On Postman, the following request is successful:
URI: POST: {{baseUrl}}/rest/api/3/search
BODY:
{
"jql": "key in (\"BEW-1111\",\"BEW-1112\")",
"startAt": "0",
"maxResults": "2",
"fields": [
"id",
"key"
]
}
When I try the same request from Salesforce, I get the error:
{“errorMessages”:[“Invalid request payload. Refer to the REST API documentation and try again.”]}
I had success with a similar request in Salesforce using the GET method with the JQL on the URI and an empty body.
So, what’s the issue? Why can’t I do an API search with the POST method from Salesforce? Any help would be appreciated.
Tim Szczesuil