Jira Automation smart value
dayOfMonth, dayOfWeekName and date attributes: examples
Date attributes return one part of a date as a value: the day, the month, the weekday name, the year or the time zone. Use them to build labels, to branch on the weekday, or to write a date in your own order. The weekday name follows the locale you set.
Syntax
{{[date].dayOfMonth}}
{{[date].dayOfWeekName}}
{{[date].monthOfYear}}
{{[date].year}}
Works on
- Fields: now, created, updated, duedate and other date values
- Returns: a number, a name or a true/false value, depending on the attribute
Examples
{{now.dayOfMonth}}Today's day of the month.
Result:
29Run on Jira Cloud on .
{{issue.created.dayOfWeekName}}The weekday the work item was created, for a rule that behaves differently at weekends.
Result:
SundayRun on Jira Cloud on .
{{issue.created.locale("fr").dayOfWeekName}}The same weekday name in French.
Result:
dimancheRun on Jira Cloud on .
{{now.dayOfWeek}}The weekday as a number; Sunday is 7.
Result:
7Run on Jira Cloud on .
{{issue.duedate.dayOfMonth}}/{{issue.duedate.monthOfYear}}/{{issue.duedate.year}}A due date written day first by joining three attributes, without a format pattern.
Result:
15/12/2026Run on Jira Cloud on .
{{issue.duedate.lengthOfMonth}}The number of days in the month of the due date.
Result:
31Run on Jira Cloud on .
Pitfalls
dayOfWeekis a number, not a name. On Sunday 29 November 2026 it gave 7, so the week ends on 7 (checked on Jira Cloud, November 2026).- Names are not strict.
{{now.dayofweek}}and{{now.dayOfWeekName()}}both rendered the expected value (checked on Jira Cloud, November 2026), so capitalisation and parentheses are not enforced. - Attributes follow the locale only when you set it.
dayOfWeekShortNamegaveSunby default anddim.with.locale("fr"). - The time zone attributes show UTC by default:
{{now.zoneId}}gaveUTCand{{now.offsetShort}}gaveZ.
Related
- weekOfYear and weekOfYearIso
- Date formats (jiraDate, format(), shortTime…)
- locale() and withLocale()
- setTimeZone() and convertToTimeZone()
- withDayOfMonth(), withMonth() and other with… setters
- startOfMonth and endOfMonth