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
Good Afternoon! Please Tell Me How To Get A List Of Tasks For The Last 24 Hours Using Task.Query_Tasks? Can This Be Done By Specifying A Specific Filter? I Looked Through The Documentation But Didn'T Find Any Explicit Mention Of It. My Attempts Were Unsu

Good afternoon!
please tell me how to get a list of tasks for the last 24 hours using Task.query_tasks? Can this be done by specifying a specific filter?

I looked through the documentation but didn't find any explicit mention of it.
My attempts were unsuccessful.
The goal is to reduce the number of tasks being rotated and speed up the query running time.

So far, it has been possible to reduce the number of returned tasks by indicating the type and status of the task and that the task is not from the archive.

please tell me, this will help a lot, reduce the number of returned tasks from 1000+ to 10-50.

current code example:

  
  
Posted 10 months ago
Votes Newest

Answers 2


I didn’t understand how exactly (

in any case, after looking at many examples, I found how it was implemented.

                 'status_changed': ['>{}'.format(datetime.utcfromtimestamp(previous_timestamp)), ],

None

  
  
Posted 10 months ago

I would suggest directly using the API for this. Then simply look at what the web UI sends as a reference 🙂

  
  
Posted 10 months ago