Fix bugs in JIRA support