I want to get issues of a certain issuetype from a project using the curl call for Jira api.
curl -D- -X GET -H "Authorization: Basic encoded" -H "Content-Type: application/json" "site/rest/api/2/search?jql=project="GB" and issuetype="Risk""
This is the call i use. It gets all the issues of project GB and not only of type Risk. I dont see where i go wrong with my JQL. I already replased issuetype with type but it still doesn't work. It keeps returning all issues and not only the issues of type Risk.