Skip to content

filter by function includes for list properties #3049

Answered by iomadh
iomadh asked this question in Q&A
Discussion options

You must be logged in to vote

I solved this by using

filter by function task.file.property('project-state') == 'active'

(note the one less equal's sign - I'm not a JS expert but think this is different to === )

but I also need to be careful only have a single value in the list (multiple values means that it doesn't match even if one of the values is a match)

Replies: 1 comment 2 replies

Comment options

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

Answer selected by claremacrae
@claremacrae
Comment options

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