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

4 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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,731 views 17 21
Read article

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