Function addIssueToContext