Search in filters

Gal Fatal
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 19, 2024

Hi,

I am trying to search in filters content.

Here is the scenario : decided to delete a  specific status from main workflow.

How do I find all filters that may search for this status ?

This is critical because it can affect boards and dashboards, or any private filter.

I would like to update them and set new status for searching.

(I have 500 filters, not possible to check one by one)

I know it's possible with external tools such as  Salto for Jira but any other way, without the need for app?

Thanks,

Gal

1 answer

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 19, 2024

Hi @Gal Fatal 

I made a similar update in the past that helped me. It might not be the best option for you, but I think it would be a good start.

You may write a simple script (PHP, Java, groovy or any other) to retrieve all filters and update them accordingly.

  • call Jira's REST API to retrieve all filters. Since you have around 500 filters, adjusting maxResults to 1000 will be sufficient.
GET /rest/api/2/filter/search?maxResults=1000
  • check the content, if there is the status in this filter that you want to delete
  • if there is a match, simply update it with the new status name calling the REST below.
PUT /rest/api/2/filter/{filter_id}

I hope this helps, please let me know if you need further assistance with the code.

Best

Suggest an answer

Log in or Sign up to answer