Adding the days completed tasks to my outcomes weekly note?

Hi all,

I am using Periodic plugins, Templater, and Tasks for my weekly note. In my daily note, I have tasks that when mark completed have the date appended and show in my weekly note. I also have an outcomes section that lists all my Outcomes sections in my daily note into my weekly note by day.

I am wondering if there is a way to combine this, with the outcomes on top and then the days completed tasks?

Currently using this setup:

---
obsidianUIMode: preview
---
`="[[" + dateformat(date(today), "dd-MM-yyyy") + "|Today ]]"`
Weekly pen: 
## History
<%*
Array.from(Array(7).keys()).map((i) => {
  date = tp.date.weekday("DD-MM-YYYY", i, tp.file.title, "YYYY-[W]ww");
  tR += `### ${date}\n`;
  tR += `![[DayPlanners/${date}#Outcomes]]\n\n`;
});
%>
## Tasks Completed
```tasks
done after <% tp.date.weekday("YYYY-MM-DD", -1) %>
done before <% tp.date.weekday("YYYY-MM-DD", 7) %>

To add, is there a way to add Previous week and Next week buttons at the top, like in a daily note? My attempts have failed.

Thanks very much :smiley:

Tried this:

<%*
Array.from(Array(7).keys()).map((i) => {
  date = tp.date.weekday("DD-MM-YYYY", i, tp.file.title, "YYYY-[W]ww");
  tR += `### [[${date}]]\n`;
  tR += `![[DayPlanners/Archive/${date}##Outcomes]]\n\n`;
  tR += ```tasks
  done after <% tp.date.weekday("YYYY-MM-DD") %>

});
%>

But no success

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.