I am using api/2/search
jql="(project=Test OR project=Test1) ORDER BY created ASC" <- this jql working;
jql="(project=Test OR project=Test1) AND created <= now()" <- this jql also working ;
jql="((project=Test OR project=Test1) ORDER BY created ASC) AND created <= now()" <- NOT working.
How put this two parametres "ORDER BY created DESC" + "AND .. " together?
The order by has to come at the end of the JQL statement. https://confluence.atlassian.com/jirasoftwarecloud/advanced-searching-764478330.html
You would have to do:
jql="(project=Test OR project=Test1) AND created <= now() ORDER BY created ASC"
Hi @Halif
I agree with Brant's answer above.
To simplify your JQL, you can also change
(project=Test OR project=Test1)
to
project in (Test, Test1)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.