Forums

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

How to get filters share with specific project?

Dang Thi Thuy Tien
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.
January 23, 2019

I want to get the filters which are shared for specific project?
For example:
Get all filters: Due this week (ATD), Open and unassigned (ATD) and Overdue (ATD) For project ATD

How can I do it?

It could be nice if I can get via REST.
I can get all filters via this script

ApplicationUser user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
searchRequestList = new ArrayList<>(searchRequestService.getOwnedFilters(user));


Thanks,Screen Shot 2019-01-24 at 11.23.58 AM.png

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 25, 2019

This is something you can search for in the Jira Web UI.  If you where to click that Search link on your screenshot, you can search by shared with project xyz:

search1.png

However, I have not found a quick way to do this via the REST API in Jira.  The REST API will allow you to find details of a share by calling the endpoint GET /rest/api/2/filter/{id}. However this endpoint requires you to know the ID of the filter in question.  There isn't a REST endpoint that you can call to get a list of all filters that match a share criteria at this time within Jira's REST API right now.

Dang Thi Thuy Tien
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.
January 29, 2019

Thank you,
But I search for develop solution,

Cheers,

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events