Modified the filter to work as suggested by Bryan Turner (Atlassian Stash developer)