Rest/api/3/search return 400 and the same JQL is working inside JIRA

Hello I’m using /rest/api/3/search API to validate JQL which returns 400 if I passed below JQL -

JQL - issuetype = Bug and fixVersion = “1.0 & 2.0”

If i passed the same jql in jira then it works fine refer below screenshot -

1 Like

Hello @krishnashah

Do a Google search on the topic of URL special characters, like ampersands, and how to encode them inside REST API queries.

Thanks @sunnyape now we are encoding the url.

Now, search api returns below error message -

In case of jira also it is showing the same result.

But it is not showing the correct result even though story with same fix version exists in jira.


I think you have the quotes in the wrong place: "2.0 & Good" tells Jira you want a single fix version named 2.0 & Good. I think what you want would be "2.0" & "Good" to indicate you want the intersection of 2.0 and Good.