Created new version of script for Jira v5.2+