Skip to content

Allow issue walker to be countable #117

@benjivm

Description

@benjivm

So far in all my projects I've used this package via Walker:

$jira = jiraApiClient();
$jiraIssues = new Walker($jira);

$jiraIssues->push('project = EXAMPLE');

foreach($jiraIssues as $issue) {
          $IssueSummary = $issue->getFields()['Summary'];
}

However using it this way I can't use any of the methods I see in the Result.php, like getTotal() etc. Ideally I'd like to be able to do something like $jiraIssues->getTotal() before processing the results in the foreach.

How can I use these methods? Is there some best practice to do what I'm trying to?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions