I should be getting back many more than 15. What am I doing wrong?
My code:
<?php
/*
JIRA REST API CLIENT https://github.com/lesstif/php-jira-rest-client#perform-an-advanced-search
*/
date_default_timezone_set('America/Los_Angeles');
require 'vendor/autoload.php'; // include Composer's autoloader
use JiraRestApi\Issue\IssueService;
//input is jira jql, returns total count of issues resulting from that jql search
function countIssues($jql)
{
$issueService = new IssueService();
$jiraResult = $issueService->search($jql);
$issueCount = count($jiraResult->issues);
return $issueCount;
}
$jql = 'project = 10000 AND type = Bug';
echo countIssues($jql)."\n";
?>
I should be getting back many more than 15. What am I doing wrong?
My code:
Result:
$ php test1.php 15