title: How to get issues from Redmine API REST
body: <p>Using the API <a href="http://www.redmine.org" rel="nofollow noreferrer">Redmine</a> using the wrapper <a href="https://github.com/kbsali/php-redmine-api" rel="nofollow noreferrer">Kevin Saliou</a>, I am trying to get the <a href="http://www.redmine.org/projects/redmine/wiki/Rest_Issues" rel="nofollow noreferrer">issues </a> of a particular project but is not being returned correctly, both issues as the <code> open</code> and <code>closed</code> are incorrect.</p>
  <pre><code>    $client = Yii::$app-&gt;redmine-&gt;connectRedmine();
  
      $issues = $client-&gt;api('issue')-&gt;all([
          'project_id' =&gt; 'id5-cli-portal',
          'status_id' =&gt; 'closed',
          'sort' =&gt; 'created_on:desc,status:desc'
      ]);
  </code></pre>
  <p>When the parameter is used as <code>status_id</code> = <code> closed</code>, it returns a fixed number of elements 25.
  The project above contains:</p>
  <blockquote>
  <p>Funcionalidade: 15 open / 86</p>
  <p>Suporte: 1 open / 5</p>
  <p>Manutenção: 7 open / 61</p>
  <p>Erro: 3 open / 20</p>
  <p>Pesquisa de Satisfação: 0 open / 0</p>
  </blockquote>
  <p>And returns: <code>16 open issue</code> / <code>25 closed issue</code></p>