Refactor add jira issue if missing