26 lines
856 B
Markdown
26 lines
856 B
Markdown
<%*
|
|
// actionable: makes a note executable by adding status, impact and effort fields.
|
|
const componentName = "actionable";
|
|
const file = tp.file.find_tfile(tp.file.path(true));
|
|
|
|
setTimeout(async () => {
|
|
await tp.app.fileManager.processFrontMatter(file, (frontmatter) => {
|
|
const components = Array.isArray(frontmatter["components"]) ? frontmatter["components"] : [];
|
|
if (!components.includes(componentName)) components.push(componentName);
|
|
|
|
frontmatter["components"] = components;
|
|
frontmatter["action_status"] = frontmatter["action_status"] ?? "open";
|
|
frontmatter["action_impact"] = frontmatter["action_impact"] ?? 1;
|
|
frontmatter["action_effort_minutes"] = frontmatter["action_effort_minutes"] ?? 30;
|
|
frontmatter["action_result"] = frontmatter["action_result"] ?? "";
|
|
});
|
|
}, 300)
|
|
-%>
|
|
|
|
## Action
|
|
|
|
- Next step:
|
|
- Definition of done:
|
|
|
|
## Result
|