I am trying to get all the issues in project X updated after date Y. I have trued below api but it does not respect the passed date and returns default 50 issues.
baseurl/rest/api/2/search?jql=project=X&fields=updated&updated>2023-03-09
The end point won't work because of the ampersands after project.
You currently have:
?jql=project=X&fields=updated&updated>2023-03-09
What you should have is:
?jql=project=X%20and%20updated%20>%202023-03-09
The "Search for issues using JQL (GET) end point specifies that the value after jql should just be a proper JQL query.
The way I would generate the query in the first place is to run the JQL in the UI, and then copy the portion of the URL containing the query.
Kris
Here is what worked for me :
String url = "baseurl/rest/api/2/search?jql=project=X AND updated>='2023-03-09 10:10'";
String query = URLEncoder.encode(url, StandardCharsets.UTF_8.toString());
And then get result for the above url.
It looks like you're new here. Sign in or register to get started.