Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an api end point which would give me just the count of tickets available in a Filter?

Dinesh Bontha June 5, 2025

Currently we are calling /api/2/filter/{id}. to get count. But it also has all the tickets . 
We need to know if there is a way to just get the count of tickets in the filter.

2 answers

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2025

Hi @Dinesh Bontha -- Welcome to the Atlassian Community!

The older v2 Issue Search endpoint provided a "total" attribute with the count, and that one is deprecatedhttps://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-get

 

The newer v3 Issue Search does not provide the count...instead it only provides paging links: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get

 

There is a new Count Issues Using JQL one you could try: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-approximate-count-post

 

Kind regards,
Bill

0 votes
Varsha Joshi
Community Champion
June 5, 2025

Hi @Dinesh Bontha 

Welcome to the community!

Have you tried providing a jql parameter in the API URL request - 

<yourinstance/rest/api/3/search?jql=project%3DJSP

Suggest an answer

Log in or Sign up to answer