It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

jql "ORDER BY created ASC" + "AND .. " Edited

Halif I'm New Here Oct 26, 2019

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?

2 answers

1 accepted

2 votes
Answer accepted
Brant Schroeder Community Leader Oct 26, 2019

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"

1 vote
Warren Community Leader Oct 28, 2019

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)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

275 views 1 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you