Comments (2)
I've checked the doc again, and this is not provided in the API (yet?).
Here is a possible solution for getting the data you are looking for :
$issues['opened'] = $client->api('issue')->all(array(
'limit' => 1,
'tracker_id' => 1,
'status_id' => 'open',
))['total_count'];
$issues['all'] = $client->api('issue')->all(array(
'limit' => 1,
'tracker_id' => 1,
'status_id' => '*',
))['total_count'];
$issues['closed'] = $client->api('issue')->all(array(
'limit' => 1,
'tracker_id' => 1,
'status_id' => 'closed',
))['total_count'];
print_r($issues);
/*
Array
(
[opened] => 7
[all] => 8
[closed] => 1
)
*/
from php-redmine-api.
You made my day! Thanks a lot for the input.
from php-redmine-api.
Related Issues (20)
- Remove `Redmine\Api\...::all()` methods
- Remove `Redmine\Api\AbstractApi::retrieveAll()`
- Add support for PHP 8.3
- Do not use temporary cache in `Redmine\Api\...::list()` methods
- [Idea] New CommandClient (High-level API), split Client and Configuration
- Rename `Response::getBody()` to `Response::getContent()`
- Add method `UnexpectedResponseException::getResponse()`
- Check Status Code of responses (especially for POST/PUT/DELETE requests)
- Create factory methods in all API classes
- Declare all `Redmine\Api\...` classes as final
- Deprecate `AbstractApi::get()`, `AbstractApi::post()`, `AbstractApi::put()` and `AbstractApi::delete()`
- Wiki page title must be urlencoded
- Third party package support: Could not create XML from array HOT 3
- Fix @deprecated phpdoc syntax
- Deprecate all `\Redmine\Api\Issue::PRIO_*` constants
- Remove `\Redmine\Api\Issue::PRIO_*` constants
- Update to Redmine 5.0.8 and 5.1.2 in tests HOT 1
- Deprecate `getLastResponseStatusCode`, `getLastResponseContentType` and `getLastResponseBody` in Clients
- author_id Params Not Working When Creating New Issue HOT 1
- XML/JSON parameter mismatch in TimeEntry.php HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-redmine-api.