Hi ImmensePenguin78 ,
When creating the tags list, try doing this: tags = ["__$and", "tag1", "tag2", "tag3", ...]
this should make sure you get only tasks with all the specified tags
Answered
Hi, Is It Possible To Apply And Logic In Task.Get_Tasks? For Example, In The Below Example Tags Is A List Of Tags And I Want To Only Fetch Tasks That Has All Of Said Tags
Hi, is it possible to apply AND logic in Task.get_tasks? For example, in the below example tags is a list of tags and I want to only fetch tasks that has all of said tagstasks = Task.get_tasks(project_name=job.project_name, task_name='^' + job.task_name + '$', task_filter={'tags': tags, 'type': [job.task_type], 'system_tags': ['-archived']})
965 Views
2
Answers
3 years ago
one year ago
Tags