def __fetch_issues(self, from_date, to_date):
issues_groups = self.client.issues(from_date=from_date)<EOL>for raw_issues in issues_groups:<EOL><INDENT>issues = json.loads(raw_issues)<EOL>for issue in issues:<EOL><INDENT>if str_to_datetime(issue['<STR_LIT>']) > to_date:<EOL><INDENT>return<EOL><DEDENT>self.__init_extra_issue_fields(issue)<EOL>for field in TARGET_ISSUE_FIELDS:<EOL><INDENT>if not issue[field]:<EOL><INDENT>continue<EOL><DEDENT>if field == '<STR_LIT:user>':<EOL><INDENT>issue[field + '<STR_LIT>'] = self.__get_user(issue[field]['<STR_LIT>'])<EOL><DEDENT>elif field == '<STR_LIT>':<EOL><INDENT>issue[field + '<STR_LIT>'] = self.__get_issue_assignee(issue[field])<EOL><DEDENT>elif field == '<STR_LIT>':<EOL><INDENT>issue[field + '<STR_LIT>'] = self.__get_issue_assignees(issue[field])<EOL><DEDENT>elif field == '<STR_LIT>':<EOL><INDENT>issue[field + '<STR_LIT>'] = self.__get_issue_comments(issue['<STR_LIT>'])<EOL><DEDENT>elif field == '<STR_LIT>':<EOL><INDENT>issue[field + '<STR_LIT>'] =self.__get_issue_reactions(issue['<STR_LIT>'], issue['<STR_LIT>']['<STR_LIT>'])<EOL><DEDENT><DEDENT>yield issue<EOL><DEDENT><DEDENT>
Fetch the issues