Modified getAllIssues to return both open and closed issues