Skip to content

Sorting Of Groups Themselve #3069

Answered by 702573N
702573N asked this question in Q&A
Sep 7, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Thank you very much for the hint with tasks.queryAll. I was actually unaware of this function and seem to have overlooked it in the documentation. After a few attempts I was able to create a working script. The result is now exactly what I wanted.

I first filter out all mentions that come from tasks that have a happens date using tasks.queryAll. In the group by function procedure, the mentions of each task are then matched with my prioMentions array.

For some reason, neither the check via includes nor via some works with my prioMentions array. Only if I convert the array into a string using join and then check it using indexOf() does work. It's just a blemish, but at least it works.

Thank…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@702573N
Comment options

@702573N
Comment options

@claremacrae
Comment options

@702573N
Comment options

Answer selected by claremacrae
@claremacrae
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants