Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
I Guys, Question, Mainly For Convenience, About Querying Tasks In Subprojects. I Wanted To Get All Published Tasks From All Child-/Subprojects Like So:

I guys, question, mainly for convenience, about querying tasks in subprojects. I wanted to get all published tasks from all child-/subprojects like so:

project = "Parent/Child/GrandChild/v1.5"
# project = "Parent"
 
# Gather all published tasks under this project (under subprojects as well)
tasks = Task.query_tasks(
    project_name=project,
    task_filter={"status": ["published"]},
)
print(len(tasks))

How can this be achieved? If here I simply replace project with the parent only, I am not getting all underlying published models but I need to manually define all subprojects.

In the UI this is possible, so I figured there is some call for this likely but somehow I cannot find it. Can someone point me in the right direction?

  
  
Posted 3 months ago
Votes Newest

Answers


Hi @<1577468611524562944:profile|MagnificentBear85> , the webUI uses the API under the hood. So you can open Developer tools (F12) and see what the webUI sends and then replicate that with code.

WDYT?

  
  
Posted 3 months ago
327 Views
1 Answer
3 months ago
3 months ago
Tags