I'm using Jira atlassian rest API to pull the issue details updated/created between date range using Python requests. But it seems not working.
Say for example, I wanted to extract the issue's which has been updated/created between 1st Jan 2018 to 31st Dec 2018 I have tried below API with JQL search. However that returns all the issue's created/updated since 1st Jan 2018 to till date and not limited to 31st Dec 2018.
Can someone help me to achieve the desired result please. Thanks.
Sample API
https://xxx-abc.atlassian.net/rest/api/3/search/?jql=updatedDate>=2018-01-01&updatedDate<=2018-12-31
I see two main problems with your REST API call:
=
, /
, etc.), which are not allowing in URLs.Generally most of the time it is a good idea to develop the JQL query within Jira itself, to see if it is working correctly. Jira helps to write JQL queries, as it validates them before actually performing the query.
So I tried to resemble you JQL on my Jira instance, where the following was working:
updatedDate >= "2018/01/01" and updatedDate <= "2018/12/31"
After running this query, you will see the URL translation of the request in the URL window of your browser. With the JQL query from the URL contains following snippet regarding the JQL statement:
?jql=updatedDate >%3D "2018%2F01%2F01" and updatedDate <%3D%20 "2018%2F12%2F31"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.