Improved getStatement with jql.