Forums

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

Need to know if there is any Specific end point to just give total for a filter

Dinesh Bontha June 13, 2025

Jira V9.17.0

Currently to get the total of tickets in a filter we are calling rest/api/2/filter/{filterId} to get total count of tickets  for each filter and if there are multiple filters we are calling the above endpoint in Loop.

IS there any JQl which would take all the filter ID and give back count of tickets in Each Filter ID

2 answers

0 votes
David Nickell
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 13, 2025

Use this endpoint instead.   rest/api/3/search?jql=filter=68630

Your results start with this:  

{"expand":"schema,names","startAt":0,"maxResults":50,"total":67,

you can add multiple filters if you are trying to get the total issues for all.  If an issue is in both filters, it will only be counted once.

/rest/api/3/search?jql=filter%20%in%(10000,10001,10009)

 

 

0 votes
Evgenii
Community Champion
June 13, 2025

Hi, @Dinesh Bontha 

It's not possible to achieve with JQL. It returns issues from the saved filter’s JQL, not their numbers.

If you have ScriptRunner. you can make custom REST endpoint, which makes required actions.

Suggest an answer

Log in or Sign up to answer