title: Query JIRA API for all issues at "Awaiting Release"
body: <p>I'm trying to use the JIRA REST API (2.0.alpha1), to query and get all issues in a certain project at "Awaiting Release".</p>
  
  <p>I can get a query to get me all issues in a certain project "TST" (with this string):</p>
  
  <pre><code>http://hostname.com/jira/rest/api/2.0.alpha1/search?jql=project=TST
  </code></pre>
  
  <p>However, I want to filter this further by only getting the issues with a certain status.</p>
  
  <p>I've created a filter in JIRA using their JQL language, and it looks like this (if this helps):</p>
  
  <pre><code>project = TST AND issuetype in (Bug, "User Story") AND status = "Awaiting Release"
  </code></pre>
  
  <p>Also, I am using 'node-jira' (<a href="https://npmjs.org/package/jira" rel="nofollow">https://npmjs.org/package/jira</a>). If you are familiar, here is my call. It always returns a 500 for some reason.</p>
  
  <pre><code> jira.searchJira('project=TST', {}, function (err, issue) {
  
        console.log(err);
  
        console.log(issue);
   });
  </code></pre>
  
  <p>Here is the documentation: <a href="https://docs.atlassian.com/jira/REST/latest/#d2e1291" rel="nofollow">https://docs.atlassian.com/jira/REST/latest/#d2e1291</a></p>
  
  <p>Here is the example page: <a href="https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Query+issues#JIRARESTAPIExample-Queryissues-Request.4" rel="nofollow">https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Query+issues#JIRARESTAPIExample-Queryissues-Request.4</a></p>