0

Filters don't appear to be working for Tasks

Hello,

 

The following shows the filters I'm using to get a list of Tasks:

 

tasks = self.sg.find(
'Task',
[
self.projectFilter,
['start_date', 'less_than', monday_next.strftime('%Y-%m-%d')],
['start_date', 'is_not', None],
['entity', 'is_not', None],
['entity', 'type_is', 'Shot'],
['step', 'is', step],
{'filter_operator' : 'any', 'filters' : [['due_date', 'greater_than', monday.strftime('%Y-%m-%d')], ['due_date', 'is', None]]},
]
+ [['content', 'in', taskNames]] if taskNames else [],
fields = ['task_assignees', 'entity', 'est_in_mins', 'start_date', 'due_date', 'sg_status_list'],
)

 

However, I appear to be getting back Tasks with no entity set and also entity set to something other than of type Shot.

0 comments

Please sign in to leave a comment.