Use custom JQL given on the command line

Some of the command line parameters can be replaced by this JQL.
Not ready to go into master yet as there is an exception thrown if
the JQL produces no results.