Block a transition based on the day of the week.
Jira expression*
new Date().getDay() != 0
Issues will not be transitioned on Sundays.
The number 0 in the expression refers to the day of the week, being 0 Sunday; 1, Monday; 2 Tuesday and so forth until 6.
![0, 6].includes(new Date().getDay())
Issues will not be transitioned on weekends.
new Date().getDay() % 2 == 0
Issues will only be transitioned every second day.
Jira expression condition
Jira expression validator
Block transitions on weekends or any other day of the week.
This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator.