Fix mistake in reference_jira_issue method

Use local variable instead global