Can we have one more filter in JIRA 6.1.6 as default under the existing two filters My Open Issues and Reported by Me ?

Srinivas Patruni March 3, 2014

There are My Open Issues and Reported by Me Filter added under Issues list of new JIRA. Could we add one more filter with status="Resolved" that "need to verify"? Most of the users from QA requires this filter. So it would be nice if we have one more filter to be added as default under the existing two filters.

4 answers

0 votes
Hy Khuu November 26, 2014

Hello Henning,

Thanks Henning, I have tried your script and update filterId # accordingly.   I created and shared all users this filter and sorted it in with _My Open PE Issues.  It works in my account only.

My goad is to be displayed on the Issues menu for all the users.  I want everyone can see by default “My Open Issues and Reported by Me and _My Open PE Issues” under Issues menu without adding it from favorite.

What do I need to change from your script?

Thanks for your help.  Happy Thanksgiving!

Hy

Henning Tietgens
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.
November 26, 2014

Did you see any errors in the log file?

Hy Khuu December 1, 2014

Hi Henning, There was no error message, but where can I view error log file? How can I accomplish to display on the Issues menu for all the users by default? (Ex: “My Open Issues and Reported by Me and _My Open PE Issues” ) Can you please help me a JQL script? thanks, Hy

Henning Tietgens
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.
December 4, 2014

You should find log messages in the atlassian-jira.log file on your server within the jirahome/log directory.

0 votes
Henning Tietgens
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 5, 2014

In addition to Andys answer you can use this script with the Script Runner plugin to add your Filter as a favorite for all users.

import com.atlassian.jira.bc.JiraServiceContextImpl
import com.atlassian.jira.bc.favourites.FavouritesService
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.search.SearchRequestManager

def userUtil = ComponentAccessor.getUserUtil()
def FavouritesService favouritesService = ComponentAccessor.getComponent(FavouritesService)
def SearchRequestManager searchRequestManager = ComponentAccessor.getComponent(SearchRequestManager)

def filterId = 12345

def filter = searchRequestManager.getSearchRequestById(filterId)
userUtil.getUsers().each{ user ->
    def ctx = new JiraServiceContextImpl(user)
    favouritesService.addFavourite(ctx, filter)
}

You have to adapt the filter id to match your filter.

0 votes
Andy Nguyen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 5, 2014

Hi,

It's not so different. Filters can be shared to everyone. You just need to create a new filter and share it to Everyone, then ask your users to go to Manage Filters and add this shared filter as Favorite. The filter will then appear in the Issues drop-down list.

Since "status=Resolved" is not a standard filter, it's not added by default. Whether to use such a custom filter is up to customers' specific needs. For more information, please refer to https://confluence.atlassian.com/display/JIRA/Managing+Shared+Filters.

All the best,

Andy

0 votes
Andy Nguyen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 4, 2014

Hi Srinivas,

You can click on New filter, edit the conditions e.g. change Status to Resolved only, and then choose to Save as. You will then have a new filter of your wish.

Cheers,

Andy

Henning Tietgens
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 5, 2014

But this filter doesn't exist for all users as default, and I think that's what Srinivas asked...

Srinivas Patruni March 5, 2014

Yes.. I had asked for default filter available to all users...

Suggest an answer

Log in or Sign up to answer