• Community
  • Products
  • Jira
  • Questions
  • 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 ?

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 ?

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

This widget could not be displayed.
Andy Nguyen Atlassian Team Mar 04, 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 Community Champion Mar 05, 2014

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

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

This widget could not be displayed.
Andy Nguyen Atlassian Team Mar 05, 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

This widget could not be displayed.
Henning Tietgens Community Champion Mar 05, 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.

This widget could not be displayed.

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 Community Champion Nov 26, 2014

Did you see any errors in the log file?

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 Community Champion Dec 04, 2014

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

175 views 1 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you