Every Friday I write a weekly report in our Confluence.
To do it, I create a new page, entitled "Week 2 (10.01.2022 - 14.01.2022)", then I fill a week summary. Dates are Monday and Friday of the respective week.
I am looking for a way to automatically insert a text containing week number and dates of Monday and Friday.
Our Confluence admin has created user macros for me, that calculate these values. And I have created a page template with them.
As far as I know these macros are written in Javascript, they query OS about current time and calculate week number and dates of Monday and Friday from it.
I have sent links to JS code snippets to our admin.
I can also access these macros from the page editor menu by clicking Plus sign -> Macro.
However, there are two issues
1. It is not possible to insert them into page title, only in the body.
2. These macros are always invoked, changing content of pages. If I visit some past report, I see current week number and dates of Monday and Friday on current week, not from the past.