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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.