The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Search in filters

Gal Fatal
Community Champion
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
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

TAGS
AUG Leaders

Atlassian Community Events