script to fetch ticket stats from JIRA