How to query date range of created field using JQL and REST API?

I need to fetch all issues that was created between two dates with specified reporter.

For Example,

January 1, 2013 to March 15, 2013.

Here's the URL that I'm using for the REST API:

http://domain.com/rest/api/2/search?jql=reporter='ram'&created='2013/10/22'

Thanks in advance!

3 answers

3 votes

Try

http://domain.com/rest/api/2/search?jql=reporter=ram and created >= "2013/01/01" and created <= "2013/03/15"

If that doesn't work, URL encode the parameters.

http://domain.com/rest/api/2/search?jql=reporter%20%3D%20ram%20and%20created%20%3E%3D%20%222013/01/01%22%20and%20created%20%3C%3D%20%222013/03/15%22

encoding works Thanks

works without encoding here. Thanks

Thanks, works perfect

works without encoding here. Thanks.

Both with and without encoding, its not working.

http://domain.com/rest/api/2/search?jql=reporter=ram and created >= "2015/02/09" and created <= 2015/02/11"

So when I searched the issues, I got to see the created time stamp format  i.e., "2015-02-09T11:44:22.000+0530".


Is this the issue with different time stamps, it got stored and retrieved?

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,026 views 12 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot