Update tasks via query doesn't trigger event listeners defined in space script

Hi, this could be a bug report but I find that my task update script doesn’t execute the custom event listener I defined if I’m toggling the task through a query.

But my event listener would work if i update the event direclty in the note (not via the query). I wonder how can I make this behavior consistent.

I can post my script if it is needed for debugging.

If I understand it correctly you’ve hit this issue:

Yes, I think it is the same problem. Sorry I didn’t find this issue reported when I was querying the github.

Do you have workaround for the time being? Anyway I’ll close this thread in favor of the github issue. Thanks!