Groovy script to make a query in jira