Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Searching JIRA issues by date created with JIRA Rest API URLS

Lawrence Hu June 11, 2018

Hi all, I want to know how to format the JIRA Rest API URL so that it will return all issues created within two specified dates.

I would want to see all issues that were created from 01/01/2018 (January 1, 2018) to 06/08/2018 (June 8, 2018).

The current URL I have is the following, how would I format the dates that I have with the URL?

http://domain.com/rest/api/2/search? 

 

1 answer

1 accepted

2 votes
Answer accepted
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 11, 2018

Hi Lawrence,

Please try http://domain.com/rest/api/2/search?jql=created%20%3E=%20%222018/01/01%22%20and%20created%20%3C=%20%222018/06/08%22

Lawrence Hu June 11, 2018

Hi Aleksandr, thanks for answering, but it gave me an error:

 

{"errorMessages":["Error in the JQL Query: Expecting operator before the end of the query. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'."],"errors":{}}

I looked up the error and I read that it is something about the blank spaces in the URL? 

How would I fix this problem?

Edit: The updated answer fixed this error.

Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 11, 2018

Sorry, I've edited the answer. The first response version was wrong.

Do you have error with updated URL (http://domain.com/rest/api/2/search?jql=created%20%3E=%20%222018/01/01%22%20and%20created%20%3C=%20%222018/06/08%22)?

Lawrence Hu June 11, 2018

Hi Aleksandr, the updated answer works! Thanks!

Wamique Riyaz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 14, 2023

hi lawrence can u help me in that i am also getting this message

 

{"errorMessages":["Error in the JQL Query: Expecting either 'OR' or 'AND' but got ')'. (line 1, character 52)"],"errors":{}}

Suggest an answer

Log in or Sign up to answer