Skip to content

I want to programmatically create tasks #3078

Closed Answered by claremacrae
JasonMKurtz asked this question in Q&A
Discussion options

You must be logged in to vote

Required behaviour

tldr: I want Dataview to be able to create tasks on my behalf.

Understood.

For instance, if I had a meeting with Bob on 2024-09-12, it would render the following:

- [ ] Review meetings/Bob [due:: 2024-09-14]

Unfortunately, the tasks plugin does not recognize these tasks. Instead of merely rendering them, I'd love to be able to call tasksPlugin.CreateTask("Review meetings/Bob", "2024-09-14"). As far as I can tell, no such function exists.

Yes, your understanding is correct.

Your code is telling dataview to display tasks, but it is not saving the tasks in the markdown, so there is no markdown content for other plugins to recognise and act upon.

Editing markdown files…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by claremacrae
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@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
type: other plugin Issues that involve another plugin, or an interaction between this plugin and another one scope: scripting Issues to do with custom filters, custom sorting and similar
2 participants