Versions Compared

Key

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


...

Math operations on date attribute

Info

Available since 0.18.0 version

On ${repeating.date.*} attribute user can do math operations and modify final date value. For example user can add minutes, hours, days, weeks, months or set hour/minutes to exact value. See available operation below:

OperationDescriptionSample usagewithMinutes(<integerValue>)

modifies the date by setting specified number of minutes.

Info

Value must be in the range [0,59]

${repeating.date.withMinutes(0).formatDateTime}withHours(<integerValue>)

modifies the date by setting specified number of hours.

Info

Value must be in the range [0,23]

${repeating.date.withHours(12).formatDateTime}addMinutes(<integerValue>)modifies the date by adding specified number of minutes${repeating.date.addMinutes(15).formatDateTime}addHours(<integerValue>)modifies the date by adding specified number of hours${repeating.date.addHours(2).formatTime}addDays(<integerValue>)modifies the date by adding specified number of days${repeating.date.addDays(2).formatDateTime}addWeeks(<integerValue>)modifies the date by adding specified number of weeks${repeating.date.addWeeks(1).formatDateTime}addMonths(<integerValue>)modifies the date by adding specified number of months${repeating.date.addMonths(15).formatDate}addYears(<integerValue>)modifies the date by adding specified number of years${repeating.date.addYers(1).formatDateTime}

Variable path

Type

Description

Sample value

date

Date

date and time of currently executing repeating occurrence (it is just like "now" time), in Jira format used in date picker

11/sep/16 1:15 PM

dueDate

Date

date and time of due date calculated by repeating occurrence that will be set for target issue, in Jira format used in date picker

29/sep/16 10:00 AM

Note

Deprecated variable paths/names

Versions before 0.18.0 use different patterns for variable paths/names. Please note that following paths/names will be removed in future versions and should not be used since 0.18.0 version:

${repeatingDateTime}, ${repeating.formatDateTime}, ${repeatingDate}, ${repeating.formatDate}, ${repeatingDateIso}, ${repeating.formatDateISO}, ${repeatingTime}, ${repeating.formatTime}, ${repeatingDay}, ${repeating.day}, ${repeatingWeek}, ${repeating.week}, ${repeatingMonth}, ${repeating.month}, ${repeatingYear}, ${repeating.year}