Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Macro expressionResultDescription

{currentdate}

2018-10-15it evaluates to current date
{currentdate+1}2018-10-161 day is added to current date
{currentdate-1}2018-10-141 day is subtracted from current date 
{{nowDate}}2018-10-15the same result as {currentdate}
{{nowDate 'lastDayOfMonth'}}2018-10-31it returns date of the last day of the month
{{nowDate 'tz' 'America/New_York'}}2018-10-15current date in New York
{{nowDate 'locale' 'es' 'format' 'MMMM'}}octubreOctober month name in Spanish
{{nowDate 'add' '1M'}}2018-11-151 month is added to current date
{{nowDate 'add' '2w 3d'}}2018-11-012 week and 3 days added to current date
{{nowDate 'subtract' '1M'}}2018-09-151 month is subtracted from current date
{{nowDate 'subtract' '2w 3d'}}2018-09-282 week and 3 days subtracted from current date

...




Anchor
datetime-macros
datetime-macros

Datetime field macros


Tip
  • {currentdatetime} - use this macro to insert current date and time when Jira issue is created, adding/subtracting days is supported (see examples below)
  • {{nowDateTime}} -  use this macro when more sophisticated date manipulation is required e.g. set the last day of month, add hours, minutes (see examples below)

...