I created two Variables and was trying to pass them to the endOfWeek() function like this.
{{#issues}}
{{#if (and(created.isAfter(endOfWeek(WeekVarOne)), created.isBefore(endOfWeek(WeekVarTwo))))}}
If I replace the variable with a number like -1 or -8 the statement works just fine. I can also print the variables to my email. I just can't get them to work in this situation. I also tried to use WeekVarOne.asNumber and that didn't work.
Any thoughts? Also, can you iterate the variable inside of a While loop?
Thanks in advance.