You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Join now to unlock these features and more
What do you mean by "connected to a project"?
If you mean shared with the project, you could use this REST API function and filter by projectId:
If you mean the JQL for the filter references the project, I believe would need to remove the filter, add expand=jql, repeatedly run the function to page through the results, and search for the project name in the JQL.
In the API @Bill Sheboy mentioned you can provide as an input parameter the ID or name of a specific filter and retrieve that one filter.
Alternately you can opt to not provide those inputs and instead add the parameter expand=jql to get all filters and include the JQL of each filter in the output. You may have to run the API command multiple times depending on the total number of filters in your system.
You would need to collect the output of all those executions and they yourself execute a search against that output to look for the project of interest within the JQL statements contained in the output.
One easy way to run the REST APIs is:
1. login to your Jira instance.
2. Open a new browser tab.
3. Take the base URL for your Jira instance (i.e. https://yourCo.atlassian.net), append the REST API endpoint (i.e. /rest/api/3/filter/search) and then append the parameters you want to use, and put that all in the URL field of the new browser tab.
If you want to follow Bill's suggestion you need to use this URL in a browser tab:
https://<your jira URL>/rest/api/3/filter/search?expand=jql
Note that you need to replace <your jira URL> with the actual base URL for your Jira instance.
You will get output similar to the following - a list of the filters on your instance including the JQL for each filter. Notice the JQL underlined in red:
You will have to search that output for the text of your project key or project name contained in the JQL statements.
Note that if you have a lot of filters the API will paginate the data. That means the first execution will return only the first "page" of results. Notice the sixth line in the output that says "total": 67 and the third line that says "maxResults": 50. That tells you that there are a total of 67 filters on the system and only the first 50 have been returned.
I just stumbled across this free app that might help you.
They say you can search for other entities, like filters, but their documentation doesn't go into detail about what you use for search criteria.
I am not endorsing the app. You would be using it at your own risk.
There may be other apps available in the Markeplace that provide similar functionality, or that would enable you to export all your filters at once.