Forums

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

How do you work around the single user ownership of filters?

saraponga
Contributor
March 25, 2012

We want to keep a relatively large set of filters (with Rapid Views) available for groups within our organization. The problem we have is that the filters are owned by a user and can only be modified by that single user. For us it would make more sense that "the group" should handle their own filters. We would really need to be able to share edit-rights for filters the same way you can share them for reading right now. There is already a request for this here, https://jira.atlassian.com/browse/JRA-6985. It doesn't look like this will be changed any time soon, so my question is;

How do you manage filters within a group? What is a good work-around?

2 answers

1 accepted

1 vote
Answer accepted
Cyril Egan
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.
March 26, 2012

Workaround:

  1. Create a shared user account and add it to the group.
  2. Change ownership of the filters to the new shared user account.
  3. Share the account login details with the group members.
  4. Anyone wishing to update the filter or dashboards for the group would login using the shared user account and make the necessary modifications.
0 votes
tousifs
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.
March 26, 2012

Hi Sarap,

you can use this plugin https://studio.plugins.atlassian.com/wiki/display/JOUT/Filter+List+Plugin.

or the second approach would be.

Find the class where you need to change or apply your business logic.

find all available for the user saved searches (own and shared filters). We have list ofFilters

List<SearchRequest> filters = filtersResult.getResults();
for (SearchRequest filter : filters) {
// filter.getName()
USer user= filter.getOwnerUserName())

List<Group> group=user.getGroups();

{

//logic if log-in user[Remote user] and group contain in [Login user.getGroups] are contained in each other with same permission.

The user belog to group can edit the same filter.

}

the process to change single class in jira is

https://answers.atlassian.com/questions/43414/easy-way-compile-java-files-of-jira.

may be you have to change Class DefaultSearchRequestService or SearchRequestService interface implementation

make changes in search method. it should work.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events