We're using JQL via '/rest/api/latest/search' to query issues before. However, we got a notification to ask using the '/rest/api/3/search/jql' API.
BUT the new api endpoint always returns an empty result. Could you please provide instructions on how to use your new API? I was trying to follow your official document https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get.
It is TOTALLY not working....
Thanks @Marc - Devoteam & @Trudy Claspill for your suggestion.
I've already fixed it in my environment. Here are some insights about what has been updated for me.
1. Update the dependency library to the latest version.
com.atlassian.jira:jira-rest-java-client-core:7.0.1
com.atlassian.jira:jira-rest-java-client-api:7.0.1
com.atlassian.servicedesk:jira-servicedesk-api:11.0.0
com.atlassian.httpclient:atlassian-httpclient-api:5.0.0
2. Upgrade JDK version to 21 at least.
3. Check your account permission in Jira Cloud and make sure its credentials are set up correctly in your project.
4. Generally, please call enhancedSearchJql(@Nullable String jql) with default value that should be working. However, if you have special requirements, the call
enhancedSearchJql(@Nullable String jql, @Nullable Integer maxResults, @Nullable String nextPageToken,@Nullable Set<String> fields, @Nullable Set<Integer> reconcileIssues), In this case, don't forget to set the fields parameter before executing JQL.
Hi @henry_he
Welcome to the community.
See tis example:
https://<instance-name>.atlassian.net/rest/api/3/search/jql?jql=project=TEST
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @henry_he
Welcome to the Atlassian community.
Please share with us the code that you are using to call the new API endpoint including the payload you are providing with the call.
We can't debug your problem without seeing how you are trying to use the endpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.