How to get issues through the Redmine REST API

0

Using the Redmine API using the Kevin Saliou , I'm trying to get issues for a particular project but not is being returned correctly, both%% and%% issues are incorrect.

    $client = Yii::$app->redmine->connectRedmine();

    $issues = $client->api('issue')->all([
        'project_id' => 'id5-cli-portal',
        'status_id' => 'closed',
        'sort' => 'created_on:desc,status:desc'
    ]);

When the open parameter is passed as closed , a fixed amount of 25 elements is returned for any project used.

In the above project example, it contains the following:

  

Functionality: 15 open / 86

     

Support: 1 open / 5

     

Maintenance: 7 open / 61

     

Error: 3 open / 20

     

Satisfaction Survey: 0 open / 0

E is returned: status_id / closed

    
asked by anonymous 29.10.2015 / 19:23

1 answer

0

The API already returns a key / value with total results:

$issues['total_count'];
    
05.11.2015 / 18:56