I am trying to fetch issues of a specific project using curl and JQL.
I have tried the same JQL in JIRA filter and also in the browser
XXX.atlassian.net/rest/api/2/search?jql=project%20=%20%27IT%20Access%20Management%27%20AND%20status%20=%20%27In%20Progress%27
But when I try this with curl it shows error:
{"errorMessages":["The value 'IT Access Management' does not exist for the field 'project'."],"warningMessages":[]}%
Here is the sample curl request
> encoded_jql=$(printf '%s' 'status = "In Progress" AND project = "IT Access Management"' | jq -s -R -r @URI)
>
Just to clarify, when I remove project filter it works fine. And with project filter it works well with JIRA filter and browser URL query.