Query Asset that contains All Tags

How can i return assets that contain (at the least) all the given tags in the filter? It seems to return any asset that contains at least one of listed tags. I want the asset to contain all of them in order to be returned.

filters = [
	['tags','in', [{'type': 'Tag', 'id': 280, 'name': 'red'}, {'type': 'Tag', 'id': 279, 'name': '3d'}]]
]
fields = ['code', 'tags'] #'sg_type', 'sg_json', 'sg_video']
result = sg.find('CustomNonProjectEntity08', filters, fields)
print result
2 Likes

Hi @JokerMartini,

Again thanks for posting. For more information of the Filter Syntax, including any or all, you could refer to the following docs:

Cheers,
Ben

3 Likes