Add templatization for getIssues and getIssue methods