Versions Compared

Key

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

...

Tip

Macros can be applied multiple times in the same text field and once in a date or date time field type.

Tip

Status
colourYellow
titlesoon
Jira automation smart values are supported

...

Macro expression

Result

Description

{currentdate}

2018-10-15

it evaluates to current date

{currentdate+1}

2018-10-16

1 day is added to current date

{currentdate-1}

2018-10-14

1 day is subtracted from current date 

{{nowDate}}

2018-10-15

the same result as {currentdate}

{{nowDate 'lastDayOfMonth'}}

2018-10-31

it returns date of the last day of the month

{{nowDate 'tz' 'America/New_York'}}

2018-10-15

current date in New York

{{nowDate 'locale' 'es' 'format' 'MMMM'}}

octubre

October month name in Spanish

{{nowDate 'add' '1M'}}

2018-11-15

1 month is added to current date

{{nowDate 'add' '2w 3d'}}

2018-11-01

2 week and 3 days added to current date

{{nowDate 'subtract' '1M'}}

2018-09-15

1 month is subtracted from current date

{{nowDate 'subtract' '2w 3d'}}

2018-09-28

2 week and 3 days subtracted from current date

{{nowDate 'format' 'ww'}}

16

Number of week, assuming today is 12.04.2021 and week begins at Sunday

{{nowDate 'format' 'WW'}}

15

Number of week, assuming today is 12.04.2021 and week begins at Monday

Anchor
datetime-macros
datetime-macros

...

Anchor
smart-values
smart-values

Status
colourYellow
titlesoon
Smart values from Jira automation

Following smart values are supported

Smar value

{{now}}

{{now.jiraDate}}

{{now.jiraDateTime}}

{{now.jqlDate}}

{{now.jqlDateTime}}

{{now.shortDate}}

{{now.shortTime}}

{{now.shortDateTime}}

{{now.mediumDate}}

{{now.mediumTime}}

{{now.mediumDateTime}}

{{now.longDate}}

{{now.longTime}}

{{now.longDateTime}}

{{now.fullDate}}

{{now.fullTime}}

{{now.fullDateTime}}

{{now.format(...)}}

{{now.plusMinutes(...)}}

{{now.plusHours(...)}}

{{now.plusDays(...)}}

{{now.plusWeeks(...)}}

{{now.plusMonths(...)}}

{{now.plusYears(...)}}

{{now.minusMinutes(...)}}

{{now.minusHours(...)}}

{{now.minusDays(...)}}

{{now.minusWeeks(...)}}

{{now.minusMonths(...)}}

{{now.minusYears(...)}}

{{now.endOfMonth}}

{{now.startOfMonth}}

{{now.firstOfTheMonth(…)}}

{{now.lastOfTheMonth(…)}}

...