[FEATURE?] Non-recursive system.tag.query?

I’m trying to work out how to get similar function to system.tag.browse('SOLAR', filter={'recursive': False}) using system.tag.query, but I’m starting to think it’s not possible…

I just want to return the tags from a folder/udt instance and not recurse into any deeper levels, but calling system.tag.query with the tagPath = “SOLAR” just gets me the SOLAR folder, and “SOLAR/*” gets me every tag under SOLAR including nested tags.

Am I missing something obvious?

I think "recursive” needs to be added into the options query param… kind of strange that i’ve only just noticed this is missing.


Also, “Folder” is missing from this selection in the tag report tool as well.

I don't think you're missing anything. At least, nothing that I'm not also missing.

As for Folder missing.. Yup. But thankfully it does work in the script.

A tad conflicted here. Seeing how the function is called ‘query’, I’d like to think that we are ‘querying a database of tags’, and that a recursive option would not be intuitive there.

That said, I do wish that we could add “Path” to additional properties, whereby something like the following would be possible:

Path LIKE SOLAR/%
AND Path NOT LIKE SOLAR/%/%

You CAN add the “Tag Type” property, with “= Folder”. Though, it would be easy enough to add the Folder selection to the existing Types drop-down.