Here is the truth – you cannot use functions in widgets.
This functionality is not supported in widgets.
So, all the stuff like the following cannot be used in widgets.
now()— the current moment
dayStartUtc()— start of the day in the UTC time zone
weekAgo()— a week ago (exactly 168 hours)
currentUser()— the current system user
Functions work in Analytics section of Allure TestOps.
Here is the reference to Allure TestOps documentation.