Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to find Filter Name from Filter ID ?

When I create a filter it is assigned an ID (as well as the name I used when saving it). I then use this ID is creating additional filters:


filter = 12000 and assignee = jsmith

How do I find out which filter a specific ID actually is? The search filter page only "Searches in the filter's name and description." I want to search on ID.

2 answers

1 accepted

If the filter is shared to you, then you can view the filter & you will get the name of the filter

https://jira.example.com/secure/IssueNavigator.jspa?mode=hide&requestId=12000

 

 

Thanks for this, works fine.

I also realised that I could work around this by adding the filter ID in the filter name and then the search functionality would be able to find it.

I tried this and it didnt work

You can search in the database:

select id, filtername from searchrequest where id =<id>;

or enter the id simply in your edit filter url like

"https://example.com/xxx/secure/EditFilter!default.jspa?filterId=12000"

Like Celeste D_Alessandro likes this

Thanks for the replies. I do not have direct access to the database so the "select" query is not usable. The 'edit' link does work if the filter was created by myself but does not work if the filter is someone elses and shared for me to use.

This if working for me:

HashMap<String, Object> hashMap = new HashMap<String, Object>();
hashMap.put("id", projectOrFilterId);
List<GenericValue> result = ofBizDelegator.findByAnd("SearchRequest", hashMap);

projectName = (String)result.get(0).get("name");

To get the Jira filter name from filter ID xxxxxx using the URL: http://jira.company.com/issues/?filter=xxxxxx

Like # people like this

Hi,

How can I find when(date of creation) was a filter created?

Thank you for the search query. That has helped me enormously - not least of which because it showed someone was giving me an incorrect filter ID!

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you