kbsali / php-redmine-api

A simple PHP Redmine API client, Object Oriented

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to get all issues (open and closed)

Top-CMS opened this issue · comments

Hi,

With the default settings I get all issues with status open
or when 'status_id' => 'closed', I get closed issues, butI want them all

How can I do that?

$client->getApi('issue')->all([
		'limit' => 500,
		//'status_id' => 'open',
		//'status_id' => 'closed',
		'sort' => 'id'
	]);

Found it:

$client->getApi('issue')->all([
		'limit' => 500,
		'status_id' => '*',
		'sort' => 'id'
	]);

Now finding solution with date start_date from to
from
'start_date' => '2021-01-01',
To
'start_date' => '2021-01-31',

Hey, please take a look at the Redmine API documentation.

So try this:

$data = $client->getApi('issue')->all([
    'start_date' => '><2020-01-01|2021-01-31',
]);

Top, thnx, that works great