Versions Compared

Key

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

...

If you enter date/datetime macros in an issue fields they will be  evaluated accordingly. 

...


Anchor
date-macros
date-macros

Date field macros


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

...

Macro expressionResultDescription

{currentdatetime}

2018-10-15T13:00:00.000it evaluates to current date
{currentdatetime+1}2018-10-16T13:00:00.0001 day is added to current date
{currentdatetime-1}2018-10-14T13:00:00.0001 day is subtracted from current date 
{{nowDateTime}}2018-10-15T13:00:00.000the same result as {currentdatetime}
{{nowDateTime 'lastDayOfMonth'}}2018-10-31T13:00:00.000date and time of the last day of the month
{{nowDateTime 'tz' 'America/New_York'}}2018-10-15T13:00:00.000-0400current date time in New York
{{nowDateTime 'locale' 'br' 'format' 'MMMM'}}HereOctober month name in Portuguese
{{nowDateTime 'add' '8h'}}2018-10-15T21:00:00.0008 hours added
{{nowDateTime 'subtract' '8h'}}2018-10-15T05:00:00.0008 hours subtracted
{{nowDateTime 'lastDayOfMonth' 'add' '8h'}}2018-10-31T21:00:00.000'lastDayOfMonth' and 'add' functions combined 
{{nowDateTime 'hour' 17}}2018-10-15T17:00:00.000set hour to 17
{{nowDateTime 'lastDayOfMonth' 'hour' 16}}2018-10-31T16:00:00.000'lastDayOfMonth' and 'hour' functions combined 

...


Anchor
text-macros
text-macros

Text field macros

All macros {currentdate}, {currentdatetime}, {{nowDate}}, {{nowDateTime}} can be used in Text fields. Examples for Date and Datetime fields are also valid for Text fields.

...