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

This widget could not be displayed.

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

This widget could not be displayed.

works without encoding here. Thanks.

This widget could not be displayed.

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
Posted 6 hours ago in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26 views 0 1
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