Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added info about v2.5.3: formatting new variables next/previous

...

VariableMeaningExamples
${fireCount}
Fire count5
${createdDate}
Creation date in format YYYY-MM-DD HH:mm timezone2017-02-02 14:41 Europe/Warsaw
${createdDate.day}
Creation day2
${createdDate.month}
Creation monthFebruary
${createdDate.shortMonth}
Creation month in number form2
${createdDate.year}
Creation year2017
${createdDate.date}
Creation date in format YYYY-MM-DD02.02.2017
${createdDate.time}
Creation time in 24 hour format14:41
${createdDate.timezone}
Creation date timezoneEurope/Warsaw
${createdDate.timezoneOffset}
Creation date timezone as time offsetGTM+01:00
${createdDate.weekOfMonth}
Creation date week of month2
${createdDate.weekOfWeekYear}
Creation date week of week-based-year (see below)28
${createdDate.weekYear}
Creation date week-based-year (should be used with .weekOfWeekYear)2017
${dueDate}
Due date in format YYYY-MM-DD02.02.2017
${dueDate.day}
Due date day2
${dueDate.month}
Due date monthFebruary
${dueDate.shortMonth}
Due date month in number form2
${dueDate.year}
Due date year2017
${dueDate.weekOfMonth}
Due date week of month2
${dueDate.weekOfWeekYear}
Due date week of week-based-year (see below)28
${dueDate.weekYear}
Due date week-based-year (should be used with .weekOfWeekYear)2017


Since version v2.5.3  we have added format options for ${createdDate} and ${dueDate}. To both of these variables add .format("") and inside "" use desired date format. eg. ${createdDate.format("dd-MM-YYYY HH:mm")} 

You can use patters specified here: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#patterns 

Here you can see the example with quarters used in creation and due date: ${createdDate.format("'Q'Q.yyyy")} ${dueDate.format("'Q'Q.yyyy")}:

Image Added


Info

Note: dueDate in Jira is a date field (compared to creation date which is a date time field), thus it doesn't support formatting for lower than 1d time intervals



We were receiving request about more flexible dates, calculations on those dates are not possible, but we have created new variables (since v2.5.3) allowing you use previous and next values:

List of all new variables :

${createdDate.nextDay}
${createdDate.nextMonth}
${createdDate.nextWeekOfMonth}
${createdDate.nextWeekOfWeekYear}
${createdDate.nextYear}
${createdDate.previousDay}
${createdDate.previousMonth}
${createdDate.previousWeekOfMonth}
${createdDate.previousWeekOfWeekYear}
${createdDate.previousYear}
${dueDate.nextDay}
${dueDate.nextMonth}
${dueDate.nextWeekOfMonth}
${dueDate.nextWeekOfWeekYear}
${dueDate.nextYear}
${dueDate.previousDay}
${dueDate.previousMonth}
${dueDate.previousWeekOfMonth}
${dueDate.previousWeekOfWeekYear}
${dueDate.previousYear}

Example

You can use these variables as shown below:

...