Schedule rules expressions, compare dates

  • 1
  • 19

I want to be able to iterate through all issues created the previous day but I don't know how to compare dates. I was thinking I could do something like this but I am getting warning/errors in Workflow editor.

Code
schedule rule Find all issues created today 
 
daily at 01:00:00 [issue.created > now - 86400] { 
  var user = null; 
  if (issue.Assignee == null) { 
    <define statements> 
  } 
}


Can somebody please point me in the right direction as to how I might achieve this?
Question is not answered.
Hi Darren,

sorry for the long delay.

Standing after the number (86400) type space (' ') and press Ctrl+Space. The suggestion list appears and you can choose 'years', 'months', 'weeks', 'days', 'minutes', 'seconds', 'milliseconds'.