Fixed bugs in jira functions from latest upstream changes.