Hi Team,
We recently noticed that the JIRA REST API endpoint /rest/api/3/search/jql has been deprecated. Our application uses this API to fetch issues (such as test cases, test suites, and requirements) based on JQL queries.
Could you please confirm:
What is the recommended replacement or alternative API for this endpoint?
currently using /rest/api/3/search/jql?jql still we didn't get any anything
Here’s a snippet of how we currently use it:
Hi @Vitheya Monikha
The REST API you are using has been deprecated and has now been removed from Jira. You have to move everything to this new search api:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get
https://developer.atlassian.com/changelog/#CHANGE-2046
Hi @Gor Greyan ,
Thank you for the update regarding the deprecation of the previous REST API. We are in the process of migrating our calls to the new /rest/api/3/search/jql endpoint.
Could you please clarify — with the new endpoint, where can we retrieve the total issue count for a JQL query? Previously, we relied on the total field from the response. Will it still be available in the new API, or is there a new way to fetch it?
Thanks in advance for your guidance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You’re correct — the new Enhanced JQL Search API (/rest/api/3/search/jql) no longer returns the total field that was included in the /rest/api/3/search responses.
Atlassian replaced the old pagination and counting model with a new token-based approach (nextPageToken), which improves performance but removes total from the standard response.
If you only need the total issue count for a JQL query, you should now use the new endpoint: See the doc - https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-approximate-count-post
POST /rest/api/3/search/approximate-countExample request:
{
"jql": "project = MYPROJECT AND status = \"To Do\""
}Example response:
{
"count": 1234
}This endpoint gives you an approximate (and usually very close) count without fetching all the issues.
If you still need an exact count, the alternative is to page through all the results from /rest/api/3/search/jql using nextPageToken and count them manually — but this is much less efficient.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gor Greyan ,
Thanks for the update and the links.
I just want to confirm the specific endpoint URL we should now use.
Currently, our application is calling:
/rest/api/3/search/jql?jql
After the deprecation, we are still not receiving any response from this endpoint. Could you please clarify the exact new endpoint or example request format we should use instead?
I provided the code snippet above kindly take a look that as well and provide the solution
Thanks in advance for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vitheya Monikha
Please try this one.
GET /rest/api/3/search/jql?jql=project = MYPROJECT AND status = "To Do"
Host: your-domain.atlassian.net
Authorization: Bearer <token>
Accept: application/json
POST /rest/api/3/search/jql
Host: your-domain.atlassian.net
Authorization: Bearer <token>
Content-Type: application/json
Accept: application/json
{
"jql": "project = MYPROJECT AND status = \"To Do\"",
"maxResults": 50,
"fields": ["summary", "assignee", "status"],
}
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gor Greyan ,
Thank you for the update regarding the deprecation of the previous REST API. We are in the process of migrating our calls to the new /rest/api/3/search/jql endpoint.
Could you please clarify — with the new endpoint, where can we retrieve the total issue count for a JQL query? Previously, we relied on the total field from the response. Will it still be available in the new API, or is there a new way to fetch it?
Thanks in advance for your guidance.
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.