refactoring and add method AddIssueEvent