Skip to content

How do I filter tasks by extended properties? #1201

Answered by ecederstrand
Tre-Seibert asked this question in Q&A
Discussion options

You must be logged in to vote

When you have registered an extended property, you should be able to use it like any other field:

class SomeExtProp(ExtendedProperty):
    ...

Task.register('some_ext_prop', SomeExtProp)

for task in account.tasks.filter(some_ext_prop="something"):
    print(task.some_ext_prop)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tre-Seibert
Comment options

Answer selected by Tre-Seibert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants