32 lines
957 B
Markdown
32 lines
957 B
Markdown
<%*
|
|
// work: describes a feature, bug, change, refactor, support item or other work artifact.
|
|
const componentName = "work";
|
|
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["work_kind"] = frontmatter["work_kind"] ?? "feature";
|
|
frontmatter["work_status"] = frontmatter["work_status"] ?? "backlog";
|
|
frontmatter["work_value"] = frontmatter["work_value"] ?? 3;
|
|
frontmatter["work_risk"] = frontmatter["work_risk"] ?? 3;
|
|
frontmatter["work_size"] = frontmatter["work_size"] ?? 1;
|
|
frontmatter["work_acceptance"] = frontmatter["work_acceptance"] ?? "";
|
|
});
|
|
}, 300)
|
|
-%>
|
|
|
|
## Work
|
|
|
|
### Problem
|
|
|
|
|
|
### Acceptance
|
|
|
|
- [ ]
|
|
|
|
### Notes
|