complete implementation of the worklogsByIssue function