Versions Compared

Key

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

Macro is an expression in recurring task field that is evaluated during Jira issue creation e.g. {{now.jqlDate}} string is replaced with current date: '2018-10-15'

...

Smart 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.plusBusinessDays(…)}}

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

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

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

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

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

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

{{now.minusBusinessDays(…)}}

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

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

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

{{now.endOfMonth}}

{{now.startOfMonth}}

{{now.firstOfTheMonth(…)}}

{{now.lastOfTheMonth(…)}}

{{now.withDayOfMonth(…)}}

{{now.withMonthOfYear(…)}}

{{now.withNextDayOfWeek(…)}}

{{now.toBusinessDay}}

{{now.toBusinessDayBackwards}}

{{now.ofTheMonth(…)}}

Usage Smart values usage examples:

Macro expression

Result

Description

{{now.lastOfTheMonth(5)}}

2021-06-25

the last Friday of the month

{{now.format("YYYY")}}-12-31

2022-12-31

the last day of the current year

{{now.endOfMonth.withNextDayOfWeek("TUE")}}

2022-09-06

the first Tuesday of the next month

{{now.endOfMonth.plusDays(1).lastOfTheMonth(2)}}

2022-09-27

the last Tuesday of the next month

{{now.format("Q")}}

1 - the number between 1-4

the quarter number

{{now.format("Qo")}}

1st 2nd 3rd 4th

the quarter name

{{now.withDayOfMonth(25).withMonthOfYear(6)}}

2023-06-25

fixed day of the month and month of the year

{{now.ofTheMonth(2, 5)}}

2023-07-14

the second Friday of the month

{{now.format("ww")}}

16

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

{{now.format("WW")}}

15

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

{{now.startOfMonth.toBusinessDay}}

2023-12-01

the first business day of the month

{{now.startOfMonth.toBusinessDay.plusBusinessDays(19)}}

2023-12-28

20th business day of the month, holidays not taken into account

Date and Datetime macros

Anchor
date-macros
date-macros
Date macros

...