Skip to content
Discussion options

You must be logged in to vote

First Filter I currently have a filter written as such:

...I want it to pull Tasks that come from a file that either has a property called 'Project' OR a property called 'Opportunity'. But I can't figure out how to add the OR statement to this filter.

See Combining Filters.

So try this:

[ filter by function task.file.hasProperty('Project') ] OR  [ filter by function task.file.hasProperty('Opportunity') ]

I like wrapping long lines with \ for readability:

[ filter by function task.file.hasProperty('Project') ] OR \
[ filter by function task.file.hasProperty('Opportunity') ]

Be sure to read the Syntax section to understand why all the following work, and when to use them:

explain

[ f…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@nbarman2022
Comment options

@claremacrae
Comment options

Answer selected by claremacrae
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
scope: filters Additions and modifications to the search filters scope: scripting Issues to do with custom filters, custom sorting and similar
2 participants