I have automation rules that automatically set the start/end time to {{now}} based on ticket transitions on change tickets.
This works exactly as intended.
For reporting and tracking purposes on the change calendar, I want to modify that time when I set it to the nearest half hour. (we would still track the actual timestamps via the change history.)
I've experimented with this but keep getting syntax errors:
{{now}.withMinute({{now}.minute}.divide(30).floor.multiply(30))}
Here's my thought process on how I expected this to work:
1. {now}.minute - extracts the number of minutes from the current time
2. .divide(30) produces a fractional amount >0 and <2
3. .floor returns either 0 or 1
4. .multiply(30) returns 0 or 30
5. .withMinute() gets the above result and sets the time to the current time, with minutes set to either :00 or :30
Could it be that .minute is not returning an integer that allows me to use arithmetic functions? Or even more basic, am I not able to access that attribute directly?
Is this even possible?