Hi @AutomationUIUser ,
Seems like you've posted the same question twice https://community.atlassian.com/t5/Removed-Posts/400-bad-request-in-search-api-on-correct-jql/td-p/2521825#U2522011
Perhaps you can mark the answer in that thread and mark this one as "Accepted" so that we can keep only one thread open.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @AutomationUIUser ,
The previous post was removed/archived, adding the answer back here:
When using the POST /rest/api/3/search api, you need to add backslashes to the double quotes, else the tool will assume those as the quotes used during the API call, adding a screenshot below of how I use it in Postman :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share an image of the actual query and body?
Will try to reproduce it at my end then.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @AutomationUIUser ,
I just noticed that you used the below in your body (as per the main query):
{jql: "id in (1,2,3)"}
you will have to put the key in double quotes, correct query is as below :
{
"jql": "id in (1,2,3)"
}
Do let us know if the this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.