title: JQL query Jira curl call
body: <p>I want to get issues of a certain issuetype from a project using the curl call for Jira api.</p>
  
  <pre><code>curl -D- -X GET -H "Authorization: Basic encoded" -H "Content-Type: application/json" "site/rest/api/2/search?jql=project="GB" and issuetype="Risk""
  </code></pre>
  
  <p>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.</p>