using IssueQuery if defined (added in redmine 2.3.0); fixes #2